8000 [TwigBundle][FrameworkBundle] Fixed that Twig cache warmer is not bei… · symfony/symfony@b8e41d6 · GitHub
[go: up one dir, main page]

Skip to content
8000

Commit b8e41d6

Browse files
author
Dennis Coorn
committed
[TwigBundle][FrameworkBundle] Fixed that Twig cache warmer is not being added as cache warmer
PassConfig::TYPE_OPTIMIZE argument added to 'addCompilerPass' method call when adding the AddCacheWarmerPass to the container
1 parent 338cd02 commit b8e41d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/FrameworkBundle.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public function build(ContainerBuilder $container)
8181
$container->addCompilerPass(new FormPass());
8282
$container->addCompilerPass(new TranslatorPass());
8383
$container->addCompilerPass(new LoggingTranslatorPass());
84-
$container->addCompilerPass(new AddCacheWarmerPass());
84+
$container->addCompilerPass(new AddCacheWarmerPass(), PassConfig::TYPE_OPTIMIZE);
8585
$container->addCompilerPass(new AddCacheClearerPass());
8686
$container->addCompilerPass(new AddExpressionLanguageProvidersPass());
8787
$container->addCompilerPass(new TranslationExtractorPass());

0 commit comments

Comments
 (0)
0