KnpU\OAuth2ClientBundle\Client\OAuth2Client::getCurrentRequest PHP Method

getCurrentRequest() private method

private getCurrentRequest ( ) : Request
return Symfony\Component\HttpFoundation\Request
    private function getCurrentRequest()
    {
        $request = $this->requestStack->getCurrentRequest();
        if (!$request) {
            throw new \LogicException('There is no "current request", and it is needed to perform this action');
        }
        return $request;
    }