gielberkers.com
Constructor Dependency Injection in Magento 2 - Giel Berkers dot com
Psst… want to see something funny? Go ahead, open up the Product -class in Magento 2 and take a look at it’s constructor: [crayon-5cebacbb2b7a8856178416/] 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! What is Constructor Injection? One nice thing about Magento …