How many ways to do dependency injection?
-
14-04-2021 - |
Question
How many ways to do dependency injection?
Object Manager,Constructor injection and Method injection Is that it ?
La solution
Yes, I believe so. As per the official blog of Magento 2 - If you find more please let me know
Link: https://devdocs.magento.com/guides/v2.4/extension-dev-guide/depend-inj.html
Licencié sous: CC-BY-SA avec attribution
Non affilié à magento.stackexchange