[TwigBundle] fixed configuration to avoid key normalizations for paths and globals (closes #5998)
This commit is contained in:
parent
e31d4f19d9
commit
6efae29f2a
@ -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) {
|
||||
|
Reference in New Issue
Block a user