Merge branch '4' into 5.1

This commit is contained in:
Guy Sartorelli 2023-11-30 11:51:36 +13:00
commit eb245a1f83
No known key found for this signature in database
GPG Key ID: F313E3B9504D496A

View File

@ -114,10 +114,13 @@ abstract class BaseKernel implements Kernel
$this->setModuleLoader($moduleLoader); $this->setModuleLoader($moduleLoader);
// Config loader // Config loader
$configFactory = new CoreConfigFactory($manifestCacheFactory);
$configManifest = $configFactory->createRoot();
$configLoader = ConfigLoader::inst(); $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); $this->setConfigLoader($configLoader);
// Load template manifest // Load template manifest