Register config as a service.

This commit is contained in:
Andrew Short 2013-12-01 22:40:42 +11:00
parent 2f817ba177
commit 4ac5a749b0

View File

@ -84,8 +84,10 @@ require_once 'control/injector/Injector.php';
// Initialise the dependency injector as soon as possible, as it is
// subsequently used by some of the following code
$default_options = array('locator' => 'SilverStripeServiceConfigurationLocator');
Injector::inst($default_options);
$injector = new Injector(array('locator' => 'SilverStripeServiceConfigurationLocator'));
$injector->registerService(Config::inst());
Injector::set_inst($injector);
///////////////////////////////////////////////////////////////////////////////
// MANIFEST