Dependency injection containers in WordPress 03

A first iteration for a PHP 5.2 compatible dependency injection container.

Idea to first draft

I’ve pushed the first working version of the dependency injection container to GitHub and the code, and the tests, can be seen there.


I need to implement some guessing capabilities in the container to support data objects, objects requiring no arguments in their __construct method, and the possibility to have further methods called down the line after the constructor.
The latter case might come useful when dealing with objects with an instantiation process like this

$i = new MyObject(); $i->setOne(23); $i->setTwo('foo'); 

I appreciate your input