8000 bug #13035 Added the function providers as container resources (stof) · symfony/symfony@b443459 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b443459

Browse files
committed
bug #13035 Added the function providers as container resources (stof)
This PR was merged into the 2.6 branch. Discussion ---------- Added the function providers as container resources | Q | A | ------------- | --- | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Changing the way an expression is compiled should invalidate the container, so that the change is taken into account. Commits ------- 513ebff Added the function providers as container resources
2 parents acb1b85 + 513ebff commit b443459

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