public function Oauth2AuthorizeForm::__construct in Simple OAuth (OAuth2) & OpenID Connect 5.x
Same name and namespace in other branches
- 8.4 src/Controller/Oauth2AuthorizeForm.php \Drupal\simple_oauth\Controller\Oauth2AuthorizeForm::__construct()
Oauth2AuthorizeForm constructor.
Parameters
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.
\Symfony\Bridge\PsrHttpMessage\HttpMessageFactoryInterface $message_factory: The message factory.
\Symfony\Bridge\PsrHttpMessage\HttpFoundationFactoryInterface $foundation_factory: The foundation factory.
\Drupal\simple_oauth\Plugin\Oauth2GrantManagerInterface $grant_manager: The grant manager.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
\Drupal\simple_oauth\KnownClientsRepositoryInterface $known_clients_repository: The known client repository service.
File
- src/
Controller/ Oauth2AuthorizeForm.php, line 87
Class
- Oauth2AuthorizeForm
- Authorize form.
Namespace
Drupal\simple_oauth\ControllerCode
public function __construct(EntityTypeManagerInterface $entity_type_manager, HttpMessageFactoryInterface $message_factory, HttpFoundationFactoryInterface $foundation_factory, Oauth2GrantManagerInterface $grant_manager, ConfigFactoryInterface $config_factory, KnownClientsRepositoryInterface $known_clients_repository) {
$this->entityTypeManager = $entity_type_manager;
$this->messageFactory = $message_factory;
$this->foundationFactory = $foundation_factory;
$this->grantManager = $grant_manager;
$this->configFactory = $config_factory;
$this->knownClientRepository = $known_clients_repository;
}