Skip to content

Commit df24ffc

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 symfony/symfony#37351 (review) Commits ------- 2514cf1c1d [FrameworkBundle] fix config declaration of http_cache option
2 parents 557e16b + b3cd926 commit df24ffc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

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)