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