·

dependency injection

Constructor Dependency Injection in Magento 2

Psst… want to see something funny? Go ahead, open up the Product -class in Magento 2 and take a look at it’s constructor: Scared? Don’t be! What you’re seeing is Magento 2’s Constructor Injection. In this article I’ll show you how to embrace and even love it!read further ...