mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge branch '4' into 5.1
This commit is contained in:
commit
eb245a1f83
@ -114,10 +114,13 @@ abstract class BaseKernel implements Kernel
|
|||||||
$this->setModuleLoader($moduleLoader);
|
$this->setModuleLoader($moduleLoader);
|
||||||
|
|
||||||
// Config loader
|
// Config loader
|
||||||
|
$configLoader = ConfigLoader::inst();
|
||||||
|
// If nesting kernels, don't create a new config manifest as that will reset config deltas
|
||||||
|
if (!$configLoader->hasManifest()) {
|
||||||
$configFactory = new CoreConfigFactory($manifestCacheFactory);
|
$configFactory = new CoreConfigFactory($manifestCacheFactory);
|
||||||
$configManifest = $configFactory->createRoot();
|
$configManifest = $configFactory->createRoot();
|
||||||
$configLoader = ConfigLoader::inst();
|
|
||||||
$configLoader->pushManifest($configManifest);
|
$configLoader->pushManifest($configManifest);
|
||||||
|
}
|
||||||
$this->setConfigLoader($configLoader);
|
$this->setConfigLoader($configLoader);
|
||||||
|
|
||||||
// Load template manifest
|
// Load template manifest
|
||||||
|
Loading…
Reference in New Issue
Block a user