| @@ 72-80 (lines=9) @@ | ||
| 69 | && !isset($v['cache_manager']['custom_proxy_client']) |
|
| 70 | ; |
|
| 71 | }) |
|
| 72 | ->then(function ($v) { |
|
| 73 | if ('auto' === $v['cache_manager']['enabled']) { |
|
| 74 | $v['cache_manager']['enabled'] = false; |
|
| 75 | ||
| 76 | return $v; |
|
| 77 | } |
|
| 78 | ||
| 79 | throw new InvalidConfigurationException('You need to configure a proxy_client or specify a custom_proxy_client to use the cache_manager.'); |
|
| 80 | }) |
|
| 81 | ->end() |
|
| 82 | ->validate() |
|
| 83 | ->ifTrue(function ($v) { |
|
| @@ 86-94 (lines=9) @@ | ||
| 83 | ->ifTrue(function ($v) { |
|
| 84 | return $v['tags']['enabled'] && !$v['cache_manager']['enabled']; |
|
| 85 | }) |
|
| 86 | ->then(function ($v) { |
|
| 87 | if ('auto' === $v['tags']['enabled']) { |
|
| 88 | $v['tags']['enabled'] = false; |
|
| 89 | ||
| 90 | return $v; |
|
| 91 | } |
|
| 92 | ||
| 93 | throw new InvalidConfigurationException('You need to configure a proxy_client to get the cache_manager needed for tag handling.'); |
|
| 94 | }) |
|
| 95 | ->end() |
|
| 96 | ->validate() |
|
| 97 | ->ifTrue(function ($v) { |
|
| @@ 100-108 (lines=9) @@ | ||
| 97 | ->ifTrue(function ($v) { |
|
| 98 | return $v['invalidation']['enabled'] && !$v['cache_manager']['enabled']; |
|
| 99 | }) |
|
| 100 | ->then(function ($v) { |
|
| 101 | if ('auto' === $v['invalidation']['enabled']) { |
|
| 102 | $v['invalidation']['enabled'] = false; |
|
| 103 | ||
| 104 | return $v; |
|
| 105 | } |
|
| 106 | ||
| 107 | throw new InvalidConfigurationException('You need to configure a proxy_client to get the cache_manager needed for invalidation handling.'); |
|
| 108 | }) |
|
| 109 | ->end() |
|
| 110 | ->validate() |
|
| 111 | ->ifTrue( |
|