mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Register config as a service.
This commit is contained in:
parent
2f817ba177
commit
4ac5a749b0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user