News Feed
Sections




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

Lars Strojny's Blog:
Dependency Injection Container Refactorings, Part Two
May 10, 2011 @ 09:24:53

Lars Strojny has posted the second part of his look at dependency injection and the refactoring it makes possible. If you'd like to start from the beginning, you can read about part one here.

He breaks it up into two sections (really three, but he advises to ignore the third):

    Introducing a parameter in to the dependency injection container's configuration
  • Setting it up to allow for checks against the environment (development, production, etc)

Code samples and example XML configurations are included for both points to help make them clearer.

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


blog comments powered by Disqus

Similar Posts

SitePoint PHP Blog: HHVM and Hack - Can We Expect Them to Replace PHP?

PHPMaster.com: Autoloading in PHP and the PSR-0 Standard

Dave Marshall' Blog: Asynchronous cache priming with progress bars via Gearman, Memcache and Dojo

PHPMaster.com: Creating a Mobile Photo Blog, Part 1

Stoyan Stefanov's Blog: phpBB front-end optimization - 1 hour workshop


Community Events





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


introduction framework zendserver api deployment unittest opinion interview library release bugfix language package laravel podcast voicesoftheelephpant series community install symfony

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