News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Benjamin Eberlei's Blog:
Using Symfony Dependency Injection with Zend_Application
July 10, 2009 @ 09:13:17

In this recent post to his blog Benjamin Eberlei talks about the combination of the dependency injection functionality the Symfony framework offers and the Zend_Application component of the Zend Framework and how to make them play well together.

As a follow-up to my recent post on Dependency Injection containers and Zend_Application I was eager to find out if its possible to integrate the new Symfony Dependency Injection Container into the Zend Framework. To my suprise its possible without having to make any changes to one of the two components.

His example use case shows the Zend_Application object being used to add a sfServiceContainer via a setContainer call. There is one strange issue in the integration, though - the Symfony container is case-sensitive for the service names but the Zend Framework makes them all lower-case.

0 comments voice your opinion now!
zendframework symfony injection dependency


blog comments powered by Disqus

Similar Posts

ServerGrove Blog: Configuring Symfony to use Zend Framework 1.8.0 new Autoloader

Raphael Stolt's Blog: Using the Zend Framework plugins for server-sided Ajax request identification

Wenbert Del Rosario's Blog: Registering your custom plugins in Zend Framework 1.8

7php.com: Interview With Stefan Koopmanschap Symfony Community Manager

SpinDrop.us: Not taking frameworks for granted


Community Events

Don't see your event here?
Let us know!


laravel5 api framework version wordpress php7 extension unittest opinion library podcast introduction language example voicesoftheelephpant community laravel series release interview

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework