8000 Added the function providers as container resources · symfony/symfony@513ebff · GitHub
[go: up one dir, main page]

Skip to content

Commit 513ebff

Browse files
committed
Added the function providers as container resources
Changing the way an expression is compiled should invalidate the container, so that the change is taken into account.
1 parent acb1b85 commit 513ebff

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/Symfony/Component/DependencyInjection/Dumper/PhpDumper.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1500,6 +1500,12 @@ private function getExpressionLanguage()
15001500
}
15011501
$providers = array_merge($this->container->getExpressionLanguageProviders(), $this->expressionLanguageProviders);
15021502
$this->expressionLanguage = new ExpressionLanguage(null, $providers);
1503+
1504+
if ($this->container->isTrackingResources()) {
1505+
foreach ($providers as $provider) {
1506+
$this->container->addObjectResource($provider);
1507+
}
1508+
}
15031509
}
15041510

15051511
return $this->expressionLanguage;

0 commit comments

Comments
 (0)
0