by Kevin Schroeder | 9:40 am

(Starting) Using Dependency Injection in Magento 2

One of the biggest switches you will experience when moving from Magento 1 to Magento 2 is inversion of control.  This is a very different concept to get used to but once you have

  READ ARTICLE
736 words ()
by Kevin Schroeder | 1:31 pm

Handling ZF2 FQ Dependency Setter Injections

In a previous article I showed how you could pass in a fully qualified parameter name into the Dependency Injection Container (DiC) if you needed to be specific about where you need to have

  READ ARTICLE
310 words ()
by Kevin Schroeder | 11:13 am

ZF2 Dependency Injection – Multiple Object Instances

When you work with the ZF2 Dependency Injection Container (DiC) when you make multiple requests for an instance of an object you will get the same object back each time. For example, with this

  READ ARTICLE
355 words ()
by Kevin Schroeder | 3:30 pm

ZF2 Dependency Injection: Managing Configuration – Part 2

In my previous post about Dependency Injection Container (DiC) configuration I made mention of some more complicated scenarios that you can use to configure your objects.  Not that you need help to make it

  READ ARTICLE
586 words ()
by Kevin Schroeder | 2:34 pm

ZF2 Dependency Injection: Managing Configuration – Part 1

Configuration is a big reason to use a Dependency Injection Container (DiC).  I’ve been doing a lot of playing around with the ZF2 DiC and one of the things that I like about it

  READ ARTICLE
851 words ()