protected function setCookieForResponse(Response $response, ResponseAuthenticationModel $responseModel)
    {
        $response->headers->setCookie(
            new Cookie(
                self::AUTH_COOKIE,
                $responseModel->getAuthToken(),
                $responseModel->getTokenExpirationTimeStamp(),
                null,
                false,
                false
            )
        );

        return $response;
    }
protected function setCookieForResponse(Response $response, ResponseAuthenticationModel $responseModel)
    {
        $response->headers->setCookie(
            new Cookie(
                self::AUTH_COOKIE,
                $responseModel->getAuthToken(),
                $responseModel->getTokenExpirationTimeStamp(),
                null,
                false,
                false
            )
        );

        return $response;
    }
protected function setCookieForResponse ( Response $ response , ResponseAuthenticationModel $ responseModel ) { $ response -> headers -> setCookie ( new Cookie ( self :: AUTH_COOKIE , $ responseModel -> getAuthToken ( ) , $ responseModel -> getTokenExpirationTimeStamp ( ) , null , false , false ) ) ; return $ response ; }
Sets the auth cookie

@param Response $response
@param ResponseAuthenticationModel $responseModel
@return Response
Sets the auth cookie