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