[WebLink][TwigBundle] Fix registration of the twig extension

This commit is contained in:
Maxime Steinhausser 2017-05-04 23:20:37 +02:00
parent f6043bb8f1
commit 3d8a5646e7
2 changed files with 2 additions and 1 deletions

View File

@ -55,6 +55,7 @@ class TwigExtension extends Extension
$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) {

View File

@ -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"