In this tutorial, we see how to use abstract factories to configure the ServiceManager in Zend Framework 2. It&rsquo;s one of the simplest approaches available.
Dependency Injection Articles
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&rsquo;s post, we explore that and how to implement constructor injection in ZF2 controller classes.
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.
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.