Sunday, February 12, 2017

__construct() must be an instance of Magento\Framework\App\Action\Context, instance of Magento\Framework\ObjectManager\ObjectManager given

After I created a Magento 2 module, when I check out the page, I see the following error message:

__construct() must be an instance of Magento\Framework\App\Action\Context, instance of Magento\Framework\ObjectManager\ObjectManager given

Try to run the following command to solve it:

# rm -rf var/di/* var/generation/*

No comments: