8000 [TwigBundle] fixed configuration to avoid key normalizations for path… · waibo/symfony@6efae29 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6efae29

Browse files
committed
[TwigBundle] fixed configuration to avoid key normalizations for paths and globals (closes symfony#5998)
1 parent e31d4f1 commit 6efae29

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Symfony/Bundle/TwigBundle/DependencyInjection/Configuration.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ private function addGlobalsSection(ArrayNodeDefinition $rootNode)
7676
->fixXmlConfig('global')
7777
->children()
7878
->arrayNode('globals')
79+
->keepKeys()
7980
->useAttributeAsKey('key')
8081
->example(array('foo' => '"@bar"', 'pi' => 3.14))
8182
->prototype('array')
@@ -126,6 +127,7 @@ private function addTwigOptions(ArrayNodeDefinition $rootNode)
126127
->scalarNode('auto_reload')->end()
127128
->scalarNode('optimizations')->end()
128129
->arrayNode('paths')
130+
->keepKeys()
129131
->beforeNormalization()
130132
->always()
131133
->then(function ($paths) {

0 commit comments

Comments
 (0)
0