File tree 1 file changed +6
-1
lines changed
Filter options
src/Symfony/Bundle/FrameworkBundle/Command 1 file changed +6
-1
lines changed
Original file line number Diff line number Diff line change 20
20
use Symfony \Component \DependencyInjection \Compiler \PassConfig ;
21
21
use Symfony \Component \DependencyInjection \ContainerBuilder ;
22
22
use Symfony \Component \DependencyInjection \Loader \XmlFileLoader ;
23
+ use Symfony \Component \DependencyInjection \ParameterBag \EnvPlaceholderParameterBag ;
23
24
24
25
final class ContainerLintCommand extends Command
25
26
{
@@ -71,7 +72,11 @@ private function getContainerBuilder(): ContainerBuilder
71
72
$ buildContainer = \Closure::bind (function () { return $ this ->buildContainer (); }, $ kernel , \get_class ($ kernel ));
72
73
$ container = $ buildContainer ();
73
74
} else {
74
- (new XmlFileLoader ($ container = new ContainerBuilder (), new FileLocator ()))->load ($ kernel ->getContainer ()->getParameter ('debug.container.dump ' ));
75
+ (new XmlFileLoader ($ container = new ContainerBuilder ($ parameterBag = new EnvPlaceholderParameterBag ()), new FileLocator ()))->load ($ kernel ->getContainer ()->getParameter ('debug.container.dump ' ));
76
+
77
+ $ refl = new \ReflectionProperty ($ parameterBag , 'resolved ' );
78
+ $ refl ->setAccessible (true );
79
+ $ refl ->setValue ($ parameterBag , true );
75
80
}
76
81
77
82
return $ this ->containerBuilder = $ container ;
You can’t perform that action at this time.
0 commit comments