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);
|
||||
|
||||
// Config loader
|
||||
$configFactory = new CoreConfigFactory($manifestCacheFactory);
|
||||
$configManifest = $configFactory->createRoot();
|
||||
$configLoader = ConfigLoader::inst();
|
||||
$configLoader->pushManifest($configManifest);
|
||||
// If nesting kernels, don't create a new config manifest as that will reset config deltas
|
||||
if (!$configLoader->hasManifest()) {
|
||||
$configFactory = new CoreConfigFactory($manifestCacheFactory);
|
||||
$configManifest = $configFactory->createRoot();
|
||||
$configLoader->pushManifest($configManifest);
|
||||
}
|
||||
$this->setConfigLoader($configLoader);
|
||||
|
||||
// Load template manifest
|
||||
|
Loading…
Reference in New Issue
Block a user