silverstripe/sapphire — pull request #530 by nyeholt (2012-06-14 08:29:45+00:00)
Title: A resubmission of a previous pull request. Contains a couple of bugfixes (including ticket #7448) and minor usage enhancements

BUGFIX Make sure to only construct args for prototype object creation if there are actually args passed through to prevent overwriting with null args if they're passed

MINOR Added __get alias to remove need for explicit ->get() call

MINOR Added the injector instance as an object that can be injected into other classes

BUGFIX Fixed issue described in http://open.silverstripe.org/ticket/7448 whereby using the injector to create an object of a type already registered as a singleton would actually overwrite the stored singleton object