private function createRedirectResponse(Request $request)
    {
        $url = $this->loginUrl.'?'.http_build_query([
            'redirect_to' => $request->getUri(),
            'reauth'      => 0,
        ]);

        return RedirectResponse::create($url, 302);
    }
private function createRedirectResponse(Request $request)
    {
        $url = $this->loginUrl.'?'.http_build_query([
            'redirect_to' => $request->getUri(),
            'reauth'      => 0,
        ]);

        return RedirectResponse::create($url, 302);
    }
private function createRedirectResponse ( Request $ request ) { $ url = $ this -> loginUrl . '?' . http_build_query ( [ 'redirect_to' => $ request -> getUri ( ) , 'reauth' => 0 , ] ) ; return RedirectResponse :: create ( $ url , 302 ) ; }
Creates a redirect response from the given request.

@param Request $request

@return \Symfony\Component\HttpFoundation\Response|static
Creates a redirect response from the given request .