silverstripe/sapphire — pull request #65 by nyeholt (2011-10-18 09:19:34+00:00)
Title: A sapphire-friendly dependency injector. 

For Hamish to review and pick at, so if you're not Hamish, feel free to ignore :)

The key bits to this can be found in _config.php (config settings which lead to impl classes for the various bits), Director.php (the only point where it's actually being used for the moment) and Injector.php which actually does the business of things. More doco can be found at https://github.com/nyeholt/injector/wiki, but reading through the test cases will probably also give you an idea of things.

(Apologies for the non-squashed commits, my attempts at rebase got me nowhere!)