Skip to content

Commit

Permalink
Improve the config validation in TwigBundle
Browse files Browse the repository at this point in the history
  • Loading branch information
stof committed Jun 4, 2015
1 parent 5607f71 commit f4dfee3
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -129,13 +129,13 @@ private function addTwigOptions(ArrayNodeDefinition $rootNode)
->end()
->scalarNode('autoescape_service')->defaultNull()->end()
->scalarNode('autoescape_service_method')->defaultNull()->end()
->scalarNode('base_template_class')->example('Twig_Template')->end()
->scalarNode('base_template_class')->example('Twig_Template')->cannotBeEmpty()->end()
->scalarNode('cache')->defaultValue('%kernel.cache_dir%/twig')->end()
->scalarNode('charset')->defaultValue('%kernel.charset%')->end()
->scalarNode('debug')->defaultValue('%kernel.debug%')->end()
->scalarNode('strict_variables')->end()
->booleanNode('debug')->defaultValue('%kernel.debug%')->end()
->booleanNode('strict_variables')->end()
->scalarNode('auto_reload')->end()
->scalarNode('optimizations')->end()
->integerNode('optimizations')->min(-1)->end()
->arrayNode('paths')
->normalizeKeys(false)
->useAttributeAsKey('paths')
Expand Down

0 comments on commit f4dfee3

Please sign in to comment.