src/Security/RequestAuthenticationHandler.php
public function logOut(HTTPRequest $request = null)
    {
        $member = Security::getCurrentUser();
        if ($member) {
            $member->beforeMemberLoggedOut($request);
        }

        foreach ($this->getHandlers() as $handler) {
            $handler->logOut($request);
        }

        Security::setCurrentUser(null);

        if ($member) {
            $member->afterMemberLoggedOut($request);
        }
    }
public function logOut(HTTPRequest $request = null)
    {
        $member = Security::getCurrentUser();
        if ($member) {
            $member->beforeMemberLoggedOut($request);
        }

        foreach ($this->getHandlers() as $handler) {
            $handler->logOut($request);
        }

        Security::setCurrentUser(null);

        if ($member) {
            $member->afterMemberLoggedOut($request);
        }
    }
public function logOut ( HTTPRequest $ request = null ) { $ member = Security :: getCurrentUser ( ) ; if ( $ member ) { $ member -> beforeMemberLoggedOut ( $ request ) ; } foreach ( $ this -> getHandlers ( ) as $ handler ) { $ handler -> logOut ( $ request ) ; } Security :: setCurrentUser ( null ) ; if ( $ member ) { $ member -> afterMemberLoggedOut ( $ request ) ; } }
Log out of all the identity-store handlers attached to this request filter

@param HTTPRequest $request
Log out of all the identity - store handlers attached to this request filter