You are making some changes to your existing action controller \MyCompany\MyModule\Controller\Index\Index public function __construct( \Magento\Framework\App\Action\Context $context, , \Magento\Framework\View\Result\PageFactory $resultPageFactory){ You want to inject a new dependency to the controller, but you encounter the following error after flushing the cache and reloading the page: Recoverable Error: Argument 2 passed to MyCompany\MyModule\Controller\Index\Index::__construct() must be an instance of ...How do you fix the error?

1.13K 浏览高级开发Plus人员考试测试题库

You are making some changes to your existing action controller \MyCompany\MyModule\Controller\Index\Index public function __construct( \Magento\Framework\App\Action\Context $context, , \Magento\Framework\View\Result\PageFactory $resultPageFactory){ You want to inject a new dependency to the controller, but you encounter the following error after flushing the cache and reloading the page: Recoverable Error: Argument 2 passed to MyCompany\MyModule\Controller\Index\Index::__construct() must be an instance of ...How do you fix the error?

0
【腾讯云】境外1核2G服务器低至2折,半价续费券限量免费领取!
【腾讯云】618采购季来袭!爆款云服务器18元起,参与活动享多重好礼