silverstripe/sapphire — pull request #419 by nyeholt (2012-05-09 12:30:52+00:00)
Title: FEATURE Added dependency injector for managing creation of new objects a...

...nd their dependencies. Hooked into core so that the injector is available, and utilised within Object::create, along with adding pre and post request handlers.

This adds support for SilverStripe's Config:: layer, which it uses to lookup config options for specific classes as they're created.

It's not fully across the all parts of object loading (some parts of CMS will need to be updated to make sure relevant controllers are injected, for example), but this will be needed before that refactoring work can begin.