File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 2626use Symfony \Component \Config \Resource \ResourceInterface ;
2727use Symfony \Component \DependencyInjection \LazyProxy \Instantiator \InstantiatorInterface ;
2828use Symfony \Component \DependencyInjection \LazyProxy \Instantiator \RealServiceInstantiator ;
29+ use Symfony \Component \DependencyInjection \ParameterBag \ParameterBagInterface ;
2930use Symfony \Component \ExpressionLanguage \Expression ;
3031use Symfony \Component \ExpressionLanguage \ExpressionFunctionProviderInterface ;
3132
@@ -73,7 +74,7 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
7374 */
7475 private $ compiler ;
7576
76- private $ trackResources = true ;
77+ private $ trackResources ;
7778
7879 /**
7980 * @var InstantiatorInterface|null
@@ -90,6 +91,13 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
9091 */
9192 private $ expressionLanguageProviders = array ();
9293
94+ public function __construct (ParameterBagInterface $ parameterBag = null )
95+ {
96+ parent ::__construct ($ parameterBag );
97+
98+ $ this ->trackResources = interface_exists ('Symfony\Component\Config\Resource\ResourceInterface ' );
99+ }
100+
93101 /**
94102 * Sets the track resources flag.
95103 *
You can’t perform that action at this time.
0 commit comments