magento-notes / magento2-exam-notes

Preparation notes for Magento 2 Certified Professional Developer exam

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dependency injection design pattern in Magento 2

coderimus opened this issue · comments

One of the base thing in Magento 2 is a dependency injection pattern. Please, describe the usage of this pattern in Magento 2 by covering next sections:

  1. Injection types
  2. di.xml
  3. Construction
  4. Compiling dependencies

Those 4 steps are optional and can be extended with the new one or completely changed.