You are here

public function Oauth2AuthorizeForm::__construct in Simple OAuth (OAuth2) & OpenID Connect 8.2

Same name and namespace in other branches
  1. 8.3 simple_oauth_extras/src/Controller/Oauth2AuthorizeForm.php \Drupal\simple_oauth_extras\Controller\Oauth2AuthorizeForm::__construct()

Oauth2AuthorizeForm constructor.

Parameters

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager:

\Symfony\Bridge\PsrHttpMessage\HttpMessageFactoryInterface $message_factory:

\Symfony\Bridge\PsrHttpMessage\HttpFoundationFactoryInterface $foundation_factory:

\Drupal\simple_oauth\Plugin\Oauth2GrantManagerInterface $grant_manager:

File

simple_oauth_extras/src/Controller/Oauth2AuthorizeForm.php, line 55

Class

Oauth2AuthorizeForm

Namespace

Drupal\simple_oauth_extras\Controller

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, HttpMessageFactoryInterface $message_factory, HttpFoundationFactoryInterface $foundation_factory, Oauth2GrantManagerInterface $grant_manager) {
  $this->entityTypeManager = $entity_type_manager;
  $this->messageFactory = $message_factory;
  $this->foundationFactory = $foundation_factory;
  $this->grantManager = $grant_manager;
}