[TwigBundle] fixed configuration to avoid key normalizations for paths and globals (closes #5998)

This commit is contained in:
Fabien Potencier 2012-12-15 16:16:52 +01:00
parent e31d4f19d9
commit 6efae29f2a

View File

@ -76,6 +76,7 @@ class Configuration implements ConfigurationInterface
->fixXmlConfig('global')
->children()
->arrayNode('globals')
->keepKeys()
->useAttributeAsKey('key')
->example(array('foo' => '"@bar"', 'pi' => 3.14))
->prototype('array')
@ -126,6 +127,7 @@ class Configuration implements ConfigurationInterface
->scalarNode('auto_reload')->end()
->scalarNode('optimizations')->end()
->arrayNode('paths')
->keepKeys()
->beforeNormalization()
->always()
->then(function ($paths) {