1

With Magento 2.3, console command found which helps developers to find all the classes related to dependency injection.

It seems that it shows dependency Injection classes from di.xml from all areas.

Ques: Does anyone know whether it shows which modules do have a dependency on which modules?

1
  • It does give plugins info (i.e) bin/magento dev:di:info Magento\\Catalog\\Model\\Product, but DI preference no luck – Yash Patadia Feb 21 '20 at 8:01
1

you can Use the dev:di:info command to retrieve information about dependency injection configuration for a class. Like if you want to retrieve information for class Magento\Catalog\Model\Product then run the command bin/magento dev:di:info "Magento\Catalog\Model\Product" from your command line. you'll get output something like this. enter image description here

you can get info of your custom class or any vendor class.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.