Dependency Injection Articles

Howto Use Constructor Injection In ZF2

April 15, 2014

Is it right to use setter injection? Or is it evil, to be avoided at all costs, for the explicitness of constructor injection? In today’s post, we explore that and how to implement constructor injection in ZF2 controller classes.

Easy Setter Injection in Zend Framework 2

April 29, 2014

Want to learn how to have initialized objects with minimal code and nearly no hands-on configuration in Zend Framework 2? Come learn about setter injection.

Zend Framework 2 Core Concepts - Dependency Injection

April 17, 2012

To master the Zend Framework 2 we need to understand its core concepts. In this series, we work through four of the core ones, starting with Dependency Injection. Join me today to get started learning all about DI.