diff --git a/src/Core/BaseKernel.php b/src/Core/BaseKernel.php index fd256b0a0ac..9374b8ef233 100644 --- a/src/Core/BaseKernel.php +++ b/src/Core/BaseKernel.php @@ -115,11 +115,13 @@ public function __construct($basePath) $this->setModuleLoader($moduleLoader); // Config loader - // @todo refactor CoreConfigFactory - $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