Now we can use annotations to load our services definitions into the Symfony Dependency Injection container.

For the second part of this series on Dependency Injection, we are going to see an elegant way to integrate the Symfony service container with your Zend Framework application.

Read the rest of this entry »

Advertisements

Having worked a lot with Spring Framework for Java EE projects, I was looking for an Inversion of Control container for managing Dependency Injection in PHP in my Zend Framework applications instead of factories. I closely followed Fabien Potencier’s (Symfony’s project lead) series on Dependency Injection in spring (season) 2009 and I recently took the time to begin testing the Dependency Injection container from Symfony Components. Quite satisfied with it I decided to integrate it with Zend Framework and to add the possibility to use docblock annotations to describe services with a new loader for the component.

Read the rest of this entry »