Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1 exception(s):
- Exception #0 (MagentoFrameworkExceptionRuntimeException): Type Error occurred when creating object: CustomPaymentControllerIndexIndexInterceptor
- Exception #0 (MagentoFrameworkExceptionRuntimeException): Type Error occurred when creating object: CustomPaymentControllerIndexIndexInterceptor
- #0
- namespace CustomPaymentHelper;
- use MagentoFrameworkAppHelperAbstractHelper;
- class General extends AbstractHelper
- {
- public function RandomFunc()
- {
- echo "This is Helper in Magento 2";
- }
- }
- namespace CustomPaymentControllerIndex;
- use CustomPaymentHelperGeneral as CustomHelper;
- use MagentoFrameworkAppActionAction;
- class Index extends Action
- {
- protected $helper;
- public function __construct(
- CustomHelper $helper
- ) {
- $this->helper = $helper;
- }
- public function execute()
- {
- $this->helper->RandomFunc();
- }
- }
Add Comment
Please, Sign In to add comment