@@ 146-152 (lines=7) @@ | ||
143 | // Determine the default tags header for the varnish client, depending on whether we use BAN or xkey |
|
144 | ->validate() |
|
145 | ->ifTrue( |
|
146 | function ($v) { |
|
147 | return |
|
148 | array_key_exists('proxy_client', $v) |
|
149 | && array_key_exists('varnish', $v['proxy_client']) |
|
150 | && empty($v['proxy_client']['varnish']['tags_header']) |
|
151 | ; |
|
152 | } |
|
153 | ) |
|
154 | ->then(function ($v) { |
|
155 | $v['proxy_client']['varnish']['tags_header'] = |
|
@@ 204-210 (lines=7) @@ | ||
201 | return $treeBuilder; |
|
202 | } |
|
203 | ||
204 | private function isVarnishXkey(array $v): bool |
|
205 | { |
|
206 | return array_key_exists('proxy_client', $v) |
|
207 | && array_key_exists('varnish', $v['proxy_client']) |
|
208 | && Varnish::TAG_XKEY === $v['proxy_client']['varnish']['tag_mode'] |
|
209 | ; |
|
210 | } |
|
211 | ||
212 | private function addCacheableResponseSection(ArrayNodeDefinition $rootNode) |
|
213 | { |