You are here

public function Oauth2ClientGrantServiceBase::__construct in OAuth2 Client 8.2

Same name and namespace in other branches
  1. 8.3 src/Service/Grant/Oauth2ClientGrantServiceBase.php \Drupal\oauth2_client\Service\Grant\Oauth2ClientGrantServiceBase::__construct()

Construct an OAuth2Client object.

Parameters

\Symfony\Component\HttpFoundation\RequestStack $requestStack: The Request Stack.

\Drupal\Core\State\StateInterface $state: The Drupal state.

\Drupal\Core\Routing\UrlGeneratorInterface $urlGenerator: The URL generator service.

\Drupal\oauth2_client\PluginManager\Oauth2ClientPluginManagerInterface $oauth2ClientPluginManager: The OAuth2 Client plugin manager.

1 call to Oauth2ClientGrantServiceBase::__construct()
AuthorizationCodeGrantService::__construct in src/Service/Grant/AuthorizationCodeGrantService.php
Construct an OAuth2Client object.
1 method overrides Oauth2ClientGrantServiceBase::__construct()
AuthorizationCodeGrantService::__construct in src/Service/Grant/AuthorizationCodeGrantService.php
Construct an OAuth2Client object.

File

src/Service/Grant/Oauth2ClientGrantServiceBase.php, line 65

Class

Oauth2ClientGrantServiceBase
Base class for OAuth2 Client grant services.

Namespace

Drupal\oauth2_client\Service\Grant

Code

public function __construct(RequestStack $requestStack, StateInterface $state, UrlGeneratorInterface $urlGenerator, Oauth2ClientPluginManagerInterface $oauth2ClientPluginManager) {
  $this->currentRequest = $requestStack
    ->getCurrentRequest();
  $this->state = $state;
  $this->urlGenerator = $urlGenerator;
  $this->oauth2ClientPluginManager = $oauth2ClientPluginManager;
  $this->clientProviderCache = array();
}