Skip to content

Commit

Permalink
[TwigBundle] fixed configuration to avoid key normalizations for path…
Browse files Browse the repository at this point in the history
…s and globals (closes #5998)
  • Loading branch information
fabpot committed Dec 16, 2012
1 parent e31d4f1 commit 6efae29
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -76,6 +76,7 @@ private function addGlobalsSection(ArrayNodeDefinition $rootNode)
->fixXmlConfig('global')
->children()
->arrayNode('globals')
->keepKeys()
->useAttributeAsKey('key')
->example(array('foo' => '"@bar"', 'pi' => 3.14))
->prototype('array')
Expand Down Expand Up @@ -126,6 +127,7 @@ private function addTwigOptions(ArrayNodeDefinition $rootNode)
->scalarNode('auto_reload')->end()
->scalarNode('optimizations')->end()
->arrayNode('paths')
->keepKeys()
->beforeNormalization()
->always()
->then(function ($paths) {
Expand Down

0 comments on commit 6efae29

Please sign in to comment.