Skip to content

Commit ba8763b

Browse files
committed
[TwigBundle] Added a RuntimeExtensionInterface to take advantage of autoconfigure
1 parent f9d73b9 commit ba8763b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
2020
use Symfony\Component\WebLink\HttpHeaderSerializer;
2121
use Twig\Extension\ExtensionInterface;
22+
use Twig\Extension\RuntimeExtensionInterface;
2223
use Twig\Loader\LoaderInterface;
2324

2425
/**
@@ -150,6 +151,7 @@ public function load(array $configs, ContainerBuilder $container)
150151
$container->registerForAutoconfiguration(\Twig_LoaderInterface::class)->addTag('twig.loader');
151152
$container->registerForAutoconfiguration(ExtensionInterface::class)->addTag('twig.extension');
152153
$container->registerForAutoconfiguration(LoaderInterface::class)->addTag('twig.loader');
154+
$container->registerForAutoconfiguration(RuntimeExtensionInterface::class)->addTag('twig.runtime');
153155

154156
if (\PHP_VERSION_ID < 70000) {
155157
$this->addClassesToCompile(array(

0 commit comments

Comments
 (0)