@@ -27,12 +27,12 @@ class ResponseCacheStrategy implements ResponseCacheStrategyInterface
27
27
/**
28
28
* Cache-Control headers that are sent to the final response if they appear in ANY of the responses.
29
29
*/
30
- private static $ overrideDirectives = ['private ' , 'no-cache ' , 'no-store ' , 'no-transform ' , 'must-revalidate ' , 'proxy-revalidate ' ];
30
+ private const OVERRIDE_DIRECTIVES = ['private ' , 'no-cache ' , 'no-store ' , 'no-transform ' , 'must-revalidate ' , 'proxy-revalidate ' ];
31
31
32
32
/**
33
33
* Cache-Control headers that are sent to the final response if they appear in ALL of the responses.
34
34
*/
35
- private static $ inheritDirectives = ['public ' , 'immutable ' ];
35
+ private const INHERIT_DIRECTIVES = ['public ' , 'immutable ' ];
36
36
37
37
private $ embeddedResponses = 0 ;
38
38
private $ isNotCacheableResponseEmbedded = false ;
@@ -60,13 +60,13 @@ public function add(Response $response)
60
60
{
61
61
++$ this ->embeddedResponses ;
62
62
63
- foreach (self ::$ overrideDirectives as $ directive ) {
63
+ foreach (self ::OVERRIDE_DIRECTIVES as $ directive ) {
64
64
if ($ response ->headers ->hasCacheControlDirective ($ directive )) {
65
65
$ this ->flagDirectives [$ directive ] = true ;
66
66
}
67
67
}
68
68
69
- foreach (self ::$ inheritDirectives as $ directive ) {
69
+ foreach (self ::INHERIT_DIRECTIVES as $ directive ) {
70
70
if (false !== $ this ->flagDirectives [$ directive ]) {
71
71
$ this ->flagDirectives [$ directive ] = $ response ->headers ->hasCacheControlDirective ($ directive );
72
72
}
0 commit comments