src/AuthenticationService.php
public function clearIdentity(ServerRequestInterface $request, ResponseInterface $response)
    {
        foreach ($this->authenticators() as $authenticator) {
            if ($authenticator instanceof PersistenceInterface) {
                $result = $authenticator->clearIdentity($request, $response);
                $request = $result['request'];
                $response = $result['response'];
            }
        }

        return [
            'request' => $request->withoutAttribute($this->getConfig('identityAttribute')),
            'response' => $response
        ];
    }
public function clearIdentity(ServerRequestInterface $request, ResponseInterface $response)
    {
        foreach ($this->authenticators() as $authenticator) {
            if ($authenticator instanceof PersistenceInterface) {
                $result = $authenticator->clearIdentity($request, $response);
                $request = $result['request'];
                $response = $result['response'];
            }
        }

        return [
            'request' => $request->withoutAttribute($this->getConfig('identityAttribute')),
            'response' => $response
        ];
    }
public function clearIdentity ( ServerRequestInterface $ request , ResponseInterface $ response ) { foreach ( $ this -> authenticators ( ) as $ authenticator ) { if ( $ authenticator instanceof PersistenceInterface ) { $ result = $ authenticator -> clearIdentity ( $ request , $ response ) ; $ request = $ result [ 'request' ] ; $ response = $ result [ 'response' ] ; } } return [ 'request' => $ request -> withoutAttribute ( $ this -> getConfig ( 'identityAttribute' ) ) , 'response' => $ response ] ; }
Clears the identity from authenticators that store them and the request

@param \Psr\Http\Message\ServerRequestInterface $request The request.
@param \Psr\Http\Message\ResponseInterface $response The response.
@return array Return an array containing the request and response objects.
Clears the identity from authenticators that store them and the request