8000 bug #41458 [FrameworkBundle] fix ConfigBuilderCacheWarmer (nicolas-gr… · symfony/symfony@e008263 · GitHub
[go: up one dir, main page]

Skip to content

Commit e008263

Browse files
committed
bug #41458 [FrameworkBundle] fix ConfigBuilderCacheWarmer (nicolas-grekas)
This PR was merged into the 5.3 branch. Discussion ---------- [FrameworkBundle] fix ConfigBuilderCacheWarmer | Q | A | ------------- | --- | Branch? | 5.3 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Commits ------- b46bac9 [FrameworkBundle] fix ConfigBuilderCacheWarmer
2 parents 16c382a + b46bac9 commit e008263

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Symfony/Bundle/FrameworkBundle/CacheWarmer/ConfigBuilderCacheWarmer.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,10 @@
1212
namespace Symfony\Bundle\FrameworkBundle\CacheWarmer;
1313

1414
use Psr\Log\LoggerInterface;
15-
use Symfony\Bundle\FrameworkBundle\Command\BuildDebugContainerTrait;
1615
use Symfony\Component\Config\Builder\ConfigBuilderGenerator;
1716
use Symfony\Component\Config\Builder\ConfigBuilderGeneratorInterface;
1817
use Symfony\Component\Config\Definition\ConfigurationInterface;
18+
use Symfony\Component\DependencyInjection\ContainerBuilder;
1919
use Symfony\Component\DependencyInjection\Extension\ConfigurationExtensionInterface;
2020
use Symfony\Component\DependencyInjection\Extension\ExtensionInterface;
2121
use Symfony\Component\HttpKernel\CacheWarmer\CacheWarmerInterface;
@@ -28,8 +28,6 @@
2828
*/
2929
class ConfigBuilderCacheWarmer implements CacheWarmerInterface
3030
{
31-
use BuildDebugContainerTrait;
32-
3331
private $kernel;
3432
private $logger;
3533

@@ -73,7 +71,7 @@ private function dumpExtension(ExtensionInterface $extension, ConfigBuilderGener
7371
if ($extension instanceof ConfigurationInterface) {
7472
$configuration = $extension;
7573
} elseif ($extension instanceof ConfigurationExtensionInterface) {
76-
$configuration = $extension->getConfiguration([], $this->getContainerBuilder($this->kernel));
74+
$configuration = $extension->getConfiguration([], new ContainerBuilder($this->kernel->getContainer()->getParameterBag()));
7775
}
7876

7977
if (!$configuration) {

0 commit comments

Comments
 (0)
0