@@ 68-76 (lines=9) @@ | ||
65 | && !isset($v['cache_manager']['custom_proxy_client']) |
|
66 | ; |
|
67 | }) |
|
68 | ->then(function ($v) { |
|
69 | if ('auto' === $v['cache_manager']['enabled']) { |
|
70 | $v['cache_manager']['enabled'] = false; |
|
71 | ||
72 | return $v; |
|
73 | } |
|
74 | ||
75 | throw new InvalidConfigurationException('You need to configure a proxy_client or specify a custom_proxy_client to use the cache_manager.'); |
|
76 | }) |
|
77 | ->end() |
|
78 | ->validate() |
|
79 | ->ifTrue(function ($v) { |
|
@@ 82-90 (lines=9) @@ | ||
79 | ->ifTrue(function ($v) { |
|
80 | return $v['tags']['enabled'] && !$v['cache_manager']['enabled']; |
|
81 | }) |
|
82 | ->then(function ($v) { |
|
83 | if ('auto' === $v['tags']['enabled']) { |
|
84 | $v['tags']['enabled'] = false; |
|
85 | ||
86 | return $v; |
|
87 | } |
|
88 | ||
89 | throw new InvalidConfigurationException('You need to configure a proxy_client to get the cache_manager needed for tag handling.'); |
|
90 | }) |
|
91 | ->end() |
|
92 | ->validate() |
|
93 | ->ifTrue(function ($v) { |
|
@@ 96-104 (lines=9) @@ | ||
93 | ->ifTrue(function ($v) { |
|
94 | return $v['invalidation']['enabled'] && !$v['cache_manager']['enabled']; |
|
95 | }) |
|
96 | ->then(function ($v) { |
|
97 | if ('auto' === $v['invalidation']['enabled']) { |
|
98 | $v['invalidation']['enabled'] = false; |
|
99 | ||
100 | return $v; |
|
101 | } |
|
102 | ||
103 | throw new InvalidConfigurationException('You need to configure a proxy_client to get the cache_manager needed for invalidation handling.'); |
|
104 | }) |
|
105 | ->end() |
|
106 | ->validate() |
|
107 | ->ifTrue( |
|
@@ 113-121 (lines=9) @@ | ||
110 | && !isset($v['proxy_client']); |
|
111 | } |
|
112 | ) |
|
113 | ->then(function ($v) { |
|
114 | if ('auto' === $v['user_context']['logout_handler']['enabled']) { |
|
115 | $v['user_context']['logout_handler']['enabled'] = false; |
|
116 | ||
117 | return $v; |
|
118 | } |
|
119 | ||
120 | throw new InvalidConfigurationException('You need to configure a proxy_client for the logout_handler.'); |
|
121 | }) |
|
122 | ; |
|
123 | ||
124 | $this->addCacheableResponseSection($rootNode); |