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 a Dependency Injection Container with Zend_Application
June 17, 2009 @ 10:25:17

New on his blog today Benjamin Eberlei has posted his own look at dependency injection containers in PHP applications, specifically with the Zend_Application component of the Zend Framework.

Much has been written on Dependency Injection lately [...]. Its an awesome pattern if used on a larger scale and can (re-) wire a complex business application according to a clients needs without having to change much of the domain code. Beginning with version 1.8 Zend Framework is able to integrate any of these DI containers into its Zend_Application component easily.

He gives an example of this integration, adding in the creation of the container as a part of the bootstrap setup (a getContainer call on the front controller object). He also introduces the Yadif DI container (a lightweight container written by Thomas McKelvey) and how to set it up including its own configuration file.

0 comments voice your opinion now!
zendframework tutorial container injection dependency


blog comments powered by Disqus

Similar Posts

Andrew Podner: Using Stackato for PHP Applications in a Private PaaS

IBM developerWorks: Setting up your own on-demand video site with PHP, Part 1

WeberDev.com: PHP 101 (part 11) - Sinfully Simple (SimpleXML)

Ivan Iordanov's Blog: extending Zend_Db_Table to create NestedSet models

The Shadow Fox Network: Building a Better Blog - Part 1 & 2


Community Events

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


interview release configure podcast application example community php7 framework series opinion symfony2 conference voicesoftheelephpant language performance part2 laravel api introduction

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