Skip to content

Commit

Permalink
FIX Don't replace config manifest for nested kernels (#11082)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored Nov 29, 2023
1 parent 1d69236 commit 6d90384
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/Core/BaseKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6d90384

Please sign in to comment.