News Feed
Jobs Feed
Sections




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

Kevin Schroeder's Blog:
ZF2 Dependency Injection Managing Configuration - Part 2
April 27, 2012 @ 08:20:49

Kevin Schroeder has posted the second part of his ZF2 dependency injection series (part one here) talking about their configuration.

In my previous post about Dependency Injection Container (DiC) configuration I made mention of some more complicated scenarios that you can use to configure your objects. Not that you need help to make it more complicated. [...] That's why I think this series of blog posts are good. They show you how to get started small which is really the only way to get started if you aren't intimately familiar with a DiC.

He expands on the previous example by adding another method that lets you set up some testing data (injected into the Test class object) and feed in the data via the "parameters" DI container configuration.

0 comments voice your opinion now!
zendframework2 dependency injection configuration tutorial initialize data


blog comments powered by Disqus

Similar Posts

MaltBlue.com: Zend Framework 2 Core Concepts - Dependency Injection

Zend Developer Zone: AJAX Chat Part Tutorial 6 : Updating the User List

Philip Norton's Blog: Simple PHP Code To Get last.fm Last Played Tracks

Segment.io: How to Make Async Requests in PHP

Markus Pullmann's Blog: Remote Debugging in PHP with XDebug


Community Events











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


install hhvm component symfony2 composer podcast facebook performance framework opinion release unittest package series hack database security application introduction language

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