File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
src/Symfony/Component/DependencyInjection Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change 26
26
use Symfony \Component \Config \Resource \ResourceInterface ;
27
27
use Symfony \Component \DependencyInjection \LazyProxy \Instantiator \InstantiatorInterface ;
28
28
use Symfony \Component \DependencyInjection \LazyProxy \Instantiator \RealServiceInstantiator ;
29
+ use Symfony \Component \DependencyInjection \ParameterBag \ParameterBagInterface ;
29
30
use Symfony \Component \ExpressionLanguage \Expression ;
30
31
use Symfony \Component \ExpressionLanguage \ExpressionFunctionProviderInterface ;
31
32
@@ -73,7 +74,7 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
73
74
*/
74
75
private $ compiler ;
75
76
76
- private $ trackResources = true ;
77
+ private $ trackResources ;
77
78
78
79
/**
79
80
* @var InstantiatorInterface|null
@@ -90,6 +91,13 @@ class ContainerBuilder extends Container implements TaggedContainerInterface
90
91
*/
91
92
private $ expressionLanguageProviders = array ();
92
93
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
+
93
101
/**
94
102
* Sets the track resources flag.
95
103
*
You can’t perform that action at this time.
0 commit comments