You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewInvalidConfigurationException('You need to configure a proxy_client for the logout_handler.');
135
+
thrownewInvalidConfigurationException('To enable the user context logout handler, you need to configure a ban capable proxy_client.');
120
136
})
121
137
;
122
138
@@ -414,7 +430,7 @@ private function addProxyClientSection(ArrayNodeDefinition $rootNode)
414
430
415
431
if ('symfony' === $proxyName) {
416
432
if (!$serversConfigured && false === $proxyConfig['use_kernel_dispatcher']) {
417
-
thrownew \InvalidArgumentException(sprintf('Either configure the "http.servers" section or enable "use_kernel_dispatcher" the proxy "%s"', $proxyName));
433
+
thrownew \InvalidArgumentException('Either configure the "http.servers" section or enable "proxy_client.symfony.use_kernel_dispatcher"');
@@ -594,6 +595,54 @@ public function testInvalidationNoCacheManager()
594
595
}
595
596
}
596
597
598
+
publicfunctionuserContextLogoutHandlerProvider()
599
+
{
600
+
return [
601
+
'auto no client' => ['config/user_context_auto_noclient.yml', false, false, false, false, null],
602
+
'auto ban client' => ['config/user_context_auto_banclient.yml', true, true, 'custom', 'auto', null],
603
+
'auto non ban client' => ['config/user_context_auto_notbanclient.yml', false, 'auto', 'nginx', 'auto', null],
604
+
'true no client' => ['config/user_context_true_noclient.yml', null, false, 'auto', false, 'you need to configure a ban capable proxy_client'],
605
+
'true ban client' => ['config/user_context_true_banclient.yml', true, true, 'custom', 'auto', null],
606
+
'true non ban client' => ['config/user_context_true_notbanclient.yml', null, true, 'nginx', 'auto', 'you need to configure a ban capable proxy_client'],
0 commit comments