8000 [FrameworkBundle] fix config declaration of http_cache option · symfony/symfony@2514cf1 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2514cf1

Browse files
[FrameworkBundle] fix config declaration of http_cache option
1 parent ffbb988 commit 2514cf1

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@ private function addHttpCacheSection(ArrayNodeDefinition $rootNode)
218218
->arrayNode('http_cache')
219219
->info('HTTP cache configuration')
220220
->canBeEnabled()
221+
->fixXmlConfig('private_header')
221222
->children()
222223
->booleanNode('debug')->defaultValue('%kernel.debug%')->end()
223224
->enumNode('trace_level')
@@ -227,8 +228,6 @@ private function addHttpCacheSection(ArrayNodeDefinition $rootNode)
227228
->integerNode('default_ttl')->end()
228229
->arrayNode('private_headers')
229230
->performNoDeepMerging()
230-
->requiresAtLeastOneElement()
231-
->fixXmlConfig('private_header')
232231
->scalarPrototype()->end()
233232
->end()
234233
->booleanNode('allow_reload')->end()

0 commit comments

Comments
 (0)
0