Skip to content

Commit

Permalink
Merge pull request #1764 from spryker/bugfix/te-7503-twig-widget-glob…
Browse files Browse the repository at this point in the history
…al-var-init

TE-7503 B2B demo shop: Twig v3 exception in checkout
  • Loading branch information
Spryker Release Bot authored Oct 5, 2020
2 parents 2c8f8bd + 1d75ec9 commit 153d602
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ class WidgetTwigPlugin extends AbstractPlugin implements TwigPluginInterface
*/
public function extend(Environment $twig, ContainerInterface $container): Environment
{
$twig->addGlobal(static::TWIG_GLOBAL_VARIABLE_NAME_WIDGET, '');
$twig = $this->addTwigFunctions($twig);

return $twig;
Expand Down

0 comments on commit 153d602

Please sign in to comment.