| @@ 141-147 (lines=7) @@ | ||
| 138 | // Determine the default tags header for the varnish client, depending on whether we use BAN or xkey |
|
| 139 | ->validate() |
|
| 140 | ->ifTrue( |
|
| 141 | function ($v) { |
|
| 142 | return |
|
| 143 | array_key_exists('proxy_client', $v) |
|
| 144 | && array_key_exists('varnish', $v['proxy_client']) |
|
| 145 | && empty($v['proxy_client']['varnish']['tags_header']) |
|
| 146 | ; |
|
| 147 | } |
|
| 148 | ) |
|
| 149 | ->then(function ($v) { |
|
| 150 | $v['proxy_client']['varnish']['tags_header'] = |
|
| @@ 199-205 (lines=7) @@ | ||
| 196 | return $treeBuilder; |
|
| 197 | } |
|
| 198 | ||
| 199 | private function isVarnishXkey(array $v): bool |
|
| 200 | { |
|
| 201 | return array_key_exists('proxy_client', $v) |
|
| 202 | && array_key_exists('varnish', $v['proxy_client']) |
|
| 203 | && Varnish::TAG_XKEY === $v['proxy_client']['varnish']['tag_mode'] |
|
| 204 | ; |
|
| 205 | } |
|
| 206 | ||
| 207 | private function addCacheableResponseSection(ArrayNodeDefinition $rootNode) |
|
| 208 | { |
|