src/ResultEncoder/ResultEncoder.php
private function encodeUserSessionTerminatedResponse(UserSessionTerminateResponseInterface $action_result, ServerRequestInterface $request, ResponseInterface $response)
    {
        $response = $this->getCookiesProvider()->remove($request, $response, $this->getUserSessionIdCookieName())[1];

        return $this->encodeArray($action_result->toArray(), $response);
    }
private function encodeUserSessionTerminatedResponse(UserSessionTerminateResponseInterface $action_result, ServerRequestInterface $request, ResponseInterface $response)
    {
        $response = $this->getCookiesProvider()->remove($request, $response, $this->getUserSessionIdCookieName())[1];

        return $this->encodeArray($action_result->toArray(), $response);
    }
private function encodeUserSessionTerminatedResponse ( UserSessionTerminateResponseInterface $ action_result , ServerRequestInterface $ request , ResponseInterface $ response ) { $ response = $ this -> getCookiesProvider ( ) -> remove ( $ request , $ response , $ this -> getUserSessionIdCookieName ( ) ) [ 1 ] ; return $ this -> encodeArray ( $ action_result -> toArray ( ) , $ response ) ; }
Encode user session terminated action results and return properly populated response.

@param  UserSessionTerminateResponseInterface $action_result
@param  ServerRequestInterface                $request
@param  ResponseInterface                     $response
@return ResponseInterface
Encode user session terminated action results and return properly populated response .