cancel
Showing results for 
Search instead for 
Did you mean: 

Dependency Injection Argument 4 passed to Custom\Module\MagentoU\Test::__construct() must be an inst

Dependency Injection Argument 4 passed to Custom\Module\MagentoU\Test::__construct() must be an inst

While working with the magento exercises provided by MagentoU I found issues while working with dependency injection

Argument 4 passed to Custom\Module\MagentoU\Test::__construct() must be an instance of Custom\Module\Api\ProductRepositoryInterface, instance of Magento\Catalog\Model\ProductRepository\Interceptor given .

Tags (1)
2 REPLIES

Re: Dependency Injection Argument 4 passed to Custom\Module\MagentoU\Test::__construct() must be an

Could you please share your entire code file to debug your issue?
If Issue Solved, Click Kudos/Accept As solutions.

Re: Dependency Injection Argument 4 passed to Custom\Module\MagentoU\Test::__construct() must be an


Rakesh Jesadiya wrote:
Could you please share your entire code file to debug your issue?

Please download the code from here