8000 Disable resource tracking if the config component is missing · symfony/symfony@75d5cb1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 75d5cb1

Browse files
committed
Disable resource tracking if the config component is missing
1 parent 6008489 commit 75d5cb1

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/Symfony/Component/DependencyInjection/ContainerBuilder.php

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
use Symfony\Component\Config\Resource\ResourceInterface;
2727
use Symfony\Component\DependencyInjection\LazyProxy\Instantiator\InstantiatorInterface;
2828
use Symfony\Component\DependencyInjection\LazyProxy\Instantiator\RealServiceInstantiator;
29+
use Symfony\Component\DependencyInjection\ParameterBag\ParameterBagInterface;
2930
use Symfony\Component\ExpressionLanguage\Expression;
3031
use 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
*

0 commit comments

Comments
 (0)
0