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 Server-Side Essentials: Introducing Joomla

NETTUTS.com: Secure Your Forms With Form Keys

NetTuts.com: Aspect-Oriented Programming in PHP with Go!

PHPMaster.com: Web Routing in PHP with Aura.Router

SitePoint PHP Blog: The Joy of Regular Expressions [2]


Community Events

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


threedevsandamaybe version laravel series unittest laravel5 symfony introduction voicesoftheelephpant extension language podcast community release library framework opinion api security interview

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