silverstripe/sapphire — pull request #514 by nyeholt (2012-06-08 10:22:37+00:00)
Title: Further small injector tweaks that I'm finding as I'm using it heavily in a PoC project at the moment

MINOR Add the injector as a registered object so that it other classes can
reference it as a dependency directly

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

TESTS Updated injector tests to catch null constructor args bug