I know this question is asked many time by another user but all of them describe "how we can use magento DI" ? they does not speak about how magento pass object that constructor method needed or how magento find constructor need which object


The di.xml file configures which dependencies are injected by the object manager. You can also specify sensitive configuration settings using di.xml

Magento loads the configuration in the following stages:

  • Initial (app/etc/di.xml)

  • Global (/etc/di.xml)

  • Area-specific (/etc//di.xml)

| improve this answer | |
  • and magento how to find which constractor need which object ? – gh darvishani May 14 '19 at 4:59

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.