Answer the question
In order to leave comments, you need to log in
Why is Magento 2 trying to instantiate an interface instead of correctly getting a class from a DI config?
Context:
- vendor package with the described factory interface (conditionally SomeServiceFactoryInterface );
- a module in Magento, in the DI configuration (MyModule/etc/di.xml) of which the factory interface bind to its implementation is explicitly registered (
<preference for="Vendor\SomeService\Factory\SomeServiceFactoryInterface" type="MyCompany\MyModule\Service\Factory\SomeServiceFactory" />
); Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question