[Security] allow custom logout handlers to be configured

This commit is contained in:
Johannes M. Schmitt 2011-01-28 14:09:51 +01:00 committed by Fabien Potencier
parent e23f39c42f
commit af696f6a65

View File

@ -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