| @@ 152-158 (lines=7) @@ | ||
| 149 | // Determine the default tags header for the varnish client, depending on whether we use BAN or xkey |
|
| 150 | ->validate() |
|
| 151 | ->ifTrue( |
|
| 152 | function ($v) { |
|
| 153 | return |
|
| 154 | array_key_exists('proxy_client', $v) |
|
| 155 | && array_key_exists('varnish', $v['proxy_client']) |
|
| 156 | && empty($v['proxy_client']['varnish']['tags_header']) |
|
| 157 | ; |
|
| 158 | } |
|
| 159 | ) |
|
| 160 | ->then(function ($v) { |
|
| 161 | $v['proxy_client']['varnish']['tags_header'] = |
|
| @@ 210-216 (lines=7) @@ | ||
| 207 | return $treeBuilder; |
|
| 208 | } |
|
| 209 | ||
| 210 | private function isVarnishXkey(array $v): bool |
|
| 211 | { |
|
| 212 | return array_key_exists('proxy_client', $v) |
|
| 213 | && array_key_exists('varnish', $v['proxy_client']) |
|
| 214 | && Varnish::TAG_XKEY === $v['proxy_client']['varnish']['tag_mode'] |
|
| 215 | ; |
|
| 216 | } |
|
| 217 | ||
| 218 | private function addCacheableResponseSection(ArrayNodeDefinition $rootNode) |
|
| 219 | { |
|