src/AuthenticationService.php
public function logout(Adapter\AdapterInterface $adapter = null, Request $request = null)
    {
        $event = $this->prepareEvent($adapter, $request);

        $event->setResult($event->getAdapter()->logout());

        $this->clearIdentity();

        return $this->triggerEventResult(AuthenticationEvent::AUTH_LOGOUT, $event);
    }
public function logout(Adapter\AdapterInterface $adapter = null, Request $request = null)
    {
        $event = $this->prepareEvent($adapter, $request);

        $event->setResult($event->getAdapter()->logout());

        $this->clearIdentity();

        return $this->triggerEventResult(AuthenticationEvent::AUTH_LOGOUT, $event);
    }
public function logout ( Adapter \ AdapterInterface $ adapter = null , Request $ request = null ) { $ event = $ this -> prepareEvent ( $ adapter , $ request ) ; $ event -> setResult ( $ event -> getAdapter ( ) -> logout ( ) ) ; $ this -> clearIdentity ( ) ; return $ this -> triggerEventResult ( AuthenticationEvent :: AUTH_LOGOUT , $ event ) ; }
Logout and provides an authentication result.

@param Adapter\AdapterInterface|null $adapter
@param Request                       $request

@return AuthenticationResult
@throws \Xloit\Bridge\Zend\Authentication\Exception\AuthenticationStopException
@throws \Xloit\Bridge\Zend\Authentication\Exception\RuntimeException
@throws \Zend\Authentication\Exception\ExceptionInterface
@throws \Zend\EventManager\Exception\InvalidArgumentException
Logout and provides an authentication result .