public function authenticateResponse(BaseUser $user, Response $response)
    {
        return $this->setCookieForResponse($response, $this->createResponseAuthModel($user));
    }
public function authenticateResponse(BaseUser $user, Response $response)
    {
        return $this->setCookieForResponse($response, $this->createResponseAuthModel($user));
    }
public function authenticateResponse ( BaseUser $ user , Response $ response ) { return $ this -> setCookieForResponse ( $ response , $ this -> createResponseAuthModel ( $ user ) ) ; }
Sets the auth cookie for an authenticated response

@param BaseUser $user
@param Response $response
@return Response
Sets the auth cookie for an authenticated response