File tree 1 file changed +5
-1
lines changed
Filter options
src/Symfony/Bundle/FrameworkBundle/CacheWarmer 1 file changed +5
-1
lines changed
Original file line number Diff line number Diff line change 15
15
use Symfony \Component \Config \Builder \ConfigBuilderGenerator ;
16
16
use Symfony \Component \Config \Builder \ConfigBuilderGeneratorInterface ;
17
17
use Symfony \Component \Config \Definition \ConfigurationInterface ;
18
+ use Symfony \Component \DependencyInjection \Container ;
18
19
use Symfony \Component \DependencyInjection \ContainerBuilder ;
19
20
use Symfony \Component \DependencyInjection \Extension \ConfigurationExtensionInterface ;
20
21
use Symfony \Component \DependencyInjection \Extension \ExtensionInterface ;
22
+ use Symfony \Component \DependencyInjection \ParameterBag \ContainerBag ;
23
+ use Symfony \Component \DependencyInjection \ParameterBag \ParameterBag ;
21
24
use Symfony \Component \HttpKernel \CacheWarmer \CacheWarmerInterface ;
22
25
use Symfony \Component \HttpKernel \KernelInterface ;
23
26
@@ -71,7 +74,8 @@ private function dumpExtension(ExtensionInterface $extension, ConfigBuilderGener
71
74
if ($ extension instanceof ConfigurationInterface) {
72
75
$ configuration = $ extension ;
73
76
} elseif ($ extension instanceof ConfigurationExtensionInterface) {
74
- $ configuration = $ extension ->getConfiguration ([], new ContainerBuilder ($ this ->kernel ->getContainer ()->getParameterBag ()));
77
+ $ container = $ this ->kernel ->getContainer ();
78
+ $ configuration = $ extension ->getConfiguration ([], new ContainerBuilder ($ container instanceof Container ? new ContainerBag ($ container ) : new ParameterBag ()));
75
79
}
76
80
77
81
if (!$ configuration ) {
You can’t perform that action at this time.
0 commit comments