diff --git a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Configuration.php b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Configuration.php index 48a17535f0817..9e3e5450a6f64 100644 --- a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Configuration.php +++ b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Configuration.php @@ -25,7 +25,7 @@ public function getConfigTreeBuilder() $rootNode ->children() - ->scalarNode('cache_warmer')->end() + ->scalarNode('cache_warmer')->defaultFalse()->end() ->end(); ; diff --git a/src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php b/src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php index abf577ceff2fc..56501fe89b008 100644 --- a/src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php +++ b/src/Symfony/Bundle/TwigBundle/DependencyInjection/TwigExtension.php @@ -60,7 +60,7 @@ public function load(array $configs, ContainerBuilder $container) } } - if (!empty($config['cache_warmer'])) { + if ($config['cache_warmer']) { $container->getDefinition('twig.cache_warmer')->addTag('kernel.cache_warmer'); }