Denotes questions regarding Magento 2 Dependency injection

Denotes questions regarding Magento 2 Dependency injection which is use as an alternative to the Magento 1.x Mage class. Dependency injection is the concept of the external environment injecting dependencies for an object instead of that object manually creating them internally.

In simple terms, when object A requires object or value B to fulfill a function, then B is a dependency of A.

Official documentation: http://devdocs.magento.com/guides/v2.0/extension-dev-guide/depend-inj.html http://devdocs.magento.com/guides/v2.1/extension-dev-guide/depend-inj.html http://devdocs.magento.com/guides/v2.2/extension-dev-guide/depend-inj.html

history | excerpt history