public function getLogoutHandler()
{
// find the logout handler
$logouttype = $this->getConfig()->getString('logouttype', 'traditional');
switch ($logouttype) {
case 'traditional':
$handler = 'SimpleSAML\\IdP\\TraditionalLogoutHandler';
break;
case 'iframe':
$handler = 'SimpleSAML\\IdP\\IFrameLogoutHandler';
break;
default:
throw new SimpleSAML_Error_Exception('Unknown logout handler: ' . var_export($logouttype, true));
}
return new $handler($this);
}