8000 bug #38580 [FrameworkBundle] fix config declaration of http_cache opt… · symfony/symfony@c61f657 · GitHub
[go: up one dir, main page]

Skip to content

Commit c61f657

Browse files
committed
bug #38580 [FrameworkBundle] fix config declaration of http_cache option (nicolas-grekas)
This PR was merged into the 5.x branch. Discussion ---------- [FrameworkBundle] fix config declaration of http_cache option | Q | A | ------------- | --- | Branch? | 5.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | - | License | MIT | Doc PR | - Addresses comments from @stof in #37351 (review) Commits ------- 2514cf1 [FrameworkBundle] fix config declaration of http_cache option
2 parents dda1fe9 + 2514cf1 commit c61f657

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