SimpleSAML_IdP::getLogoutHandler PHP Méthode

getLogoutHandler() public méthode

Find the logout handler of this IdP.
public getLogoutHandler ( ) : SimpleSAML\IdP\LogoutHandlerInterface
Résultat SimpleSAML\IdP\LogoutHandlerInterface The logout handler class.
    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);
    }