From 3d8a5646e733391816507237fe9185d44555b2cf Mon Sep 17 00:00:00 2001 From: Maxime Steinhausser Date: Thu, 4 May 2017 23:20:37 +0200 Subject: [PATCH] [WebLink][TwigBundle] Fix registration of the twig extension --- .../Bundle/TwigBundle/DependencyInjection/TwigExtension.php | 1 + src/Symfony/Bundle/TwigBundle/composer.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php b/src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php index 8e37cbba871b..410dbcebf8c7 100644 --- a/src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php +++ b/src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php @@ -55,6 +55,7 @@ public function load(array $configs, ContainerBuilder $container) $definition = $container->register('twig.extension.weblink', WebLinkExtension::class); $definition->setPublic(false); $definition->addArgument(new Reference('request_stack')); + $definition->addTag('twig.extension'); } foreach ($configs as $key => $config) { diff --git a/src/Symfony/Bundle/TwigBundle/composer.json b/src/Symfony/Bundle/TwigBundle/composer.json index 00cb04e852e3..454349b0f089 100644 --- a/src/Symfony/Bundle/TwigBundle/composer.json +++ b/src/Symfony/Bundle/TwigBundle/composer.json @@ -18,7 +18,7 @@ "require": { "php": ">=5.5.9", "symfony/config": "~3.2", - "symfony/twig-bridge": "^3.2.1", + "symfony/twig-bridge": "^3.3", "symfony/http-foundation": "~2.8|~3.0", "symfony/http-kernel": "^3.3", "twig/twig": "^1.32|^2.2"