public function AuthorizationCodeGrantService::__construct in OAuth2 Client 8.2
Same name and namespace in other branches
- 8.3 src/Service/Grant/AuthorizationCodeGrantService.php \Drupal\oauth2_client\Service\Grant\AuthorizationCodeGrantService::__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.
\Drupal\Core\TempStore\PrivateTempStoreFactory $tempstoreFactory: The Drupal private tempstore factory.
Overrides Oauth2ClientGrantServiceBase::__construct
File
- src/
Service/ Grant/ AuthorizationCodeGrantService.php, line 39
Class
- AuthorizationCodeGrantService
- Handles Authorization Grants for the OAuth2 Client module.
Namespace
Drupal\oauth2_client\Service\GrantCode
public function __construct(RequestStack $requestStack, StateInterface $state, UrlGeneratorInterface $urlGenerator, Oauth2ClientPluginManagerInterface $oauth2ClientPluginManager, PrivateTempStoreFactory $tempstoreFactory) {
parent::__construct($requestStack, $state, $urlGenerator, $oauth2ClientPluginManager);
$this->tempstore = $tempstoreFactory
->get('oauth2_client');
}