Skip to content

Commit

Permalink
fix viewhelper methods
Browse files Browse the repository at this point in the history
  • Loading branch information
kokspflanze committed Sep 26, 2024
1 parent 17fb1cc commit 92a49a8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Twig/EnvironmentFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,7 @@ function ($name) use ($helperPluginManager) {
if ($helperPluginManager->has($name)) {
return new TwigFunction(
$name,
sprintf(
'$this->env->getExtension("%s")->getRenderer()->plugin("%s")->__invoke',
Extension::class,
$name
),
[$helperPluginManager->get($name), '__invoke'],
['is_safe' => ['all']]
);
}
Expand Down

0 comments on commit 92a49a8

Please sign in to comment.