OAuth2\OAuth2::createRedirectUriCallbackResponse PHP Method

createRedirectUriCallbackResponse() private method

Handle both redirect for success or error response.
private createRedirectUriCallbackResponse ( string $redirectUri, array $params ) : Response
$redirectUri string An absolute URI to which the authorization server will redirect the user-agent to when the end-user authorization step is completed.
$params array Parameters to be pass though buildUri().
return Symfony\Component\HttpFoundation\Response
    private function createRedirectUriCallbackResponse($redirectUri, $params)
    {
        return new Response('', 302, array('Location' => $this->buildUri($redirectUri, $params)));
    }