alankent.me
Why I Prefer Constructor Injection over Setter or Property Injection
Magento 2 uses constructor injection as a part of the move towards dependency injection. This is a quick post on why I personally believe constructor injection is the best approach. And to give app…