Skip to content

Commit 7eaf07b

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 c293d3c commit 7eaf07b

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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)