You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DependencyInjection/Configuration.php
+5-2Lines changed: 5 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -573,16 +573,19 @@ private function createCachePluginNode()
573
573
->end()
574
574
->end()
575
575
->end()
576
-
->enumNode('respect_cache_headers')
576
+
->scalarNode('respect_cache_headers')
577
577
->info('Whether we should care about cache headers or not [DEPRECATED]')
578
-
->values([null, true, false])
579
578
->beforeNormalization()
580
579
->always(function ($v) {
581
580
@trigger_error('The option "respect_cache_headers" is deprecated since version 1.3 and will be removed in 2.0. Use "respect_response_cache_directives" instead.', E_USER_DEPRECATED);
582
581
583
582
return$v;
584
583
})
585
584
->end()
585
+
->validate()
586
+
->ifNotInArray([null, true, false])
587
+
->thenInvalid('Value for "respect_cache_headers" must be null or boolean')
* @expectedExceptionMessage Can't configure both "toolbar" and "profiling" section. The "toolbar" config is deprecated as of version 1.3.0, please only use "profiling".
0 commit comments