Skip to content

Commit

Permalink
[TwigBundle] Tweak cache warmer configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
vicb committed Apr 8, 2011
1 parent 7cc51d8 commit e1ab14b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function getConfigTreeBuilder()

$rootNode
->children()
->scalarNode('cache_warmer')->end()
->scalarNode('cache_warmer')->defaultFalse()->end()
->end();
;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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');
}

Expand Down

0 comments on commit e1ab14b

Please sign in to comment.