From af696f6a6546bf3e72f1ba9a976c8c94cc62f6ae Mon Sep 17 00:00:00 2001 From: "Johannes M. Schmitt" Date: Fri, 28 Jan 2011 14:09:51 +0100 Subject: [PATCH] [Security] allow custom logout handlers to be configured --- .../SecurityBundle/DependencyInjection/SecurityExtension.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php index f6fb282993..f02295cf3f 100644 --- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php +++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php @@ -298,6 +298,11 @@ class SecurityExtension extends Extension $listener->addMethodCall('addHandler', array(new Reference($cookieHandlerId))); } + + // add custom handlers + foreach ($this->normalizeConfig($firewall['logout'], 'handler') as $handlerId) { + $listener->addMethodCall('addHandler', array(new Reference($handlerId))); + } } // Authentication listeners