File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
src/Symfony/Component/HttpKernel Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -640,7 +640,7 @@ protected function buildContainer()
640
640
}
641
641
}
642
642
643
- $ container = new ContainerBuilder ( new ParameterBag ( $ this ->getKernelParameters ()) );
643
+ $ container = $ this ->getContainerBuilder ( );
644
644
$ extensions = array ();
645
645
foreach ($ this ->bundles as $ bundle ) {
646
646
if ($ extension = $ bundle ->getContainerExtension ()) {
@@ -671,6 +671,16 @@ protected function buildContainer()
671
671
return $ container ;
672
672
}
673
673
674
+ /**
675
+ * Gets a new ContainerBuilder instance used to build the service container.
676
+ *
677
+ * @return ContainerBuilder
678
+ */
679
+ protected function getContainerBuilder ()
680
+ {
681
+ return new ContainerBuilder (new ParameterBag ($ this ->getKernelParameters ()));
682
+ }
683
+
674
684
/**
675
685
* Dumps the service container to PHP code in the cache.
676
686
*
You can’t perform that action at this time.
0 commit comments