You are here

public function OpenIDConnectRedirectController::__construct in OpenID Connect / OAuth client 8

Same name and namespace in other branches
  1. 2.x src/Controller/OpenIDConnectRedirectController.php \Drupal\openid_connect\Controller\OpenIDConnectRedirectController::__construct()

The constructor.

Parameters

\Drupal\openid_connect\Plugin\OpenIDConnectClientManager $plugin_manager: The OpenID client plugin manager.

\Drupal\openid_connect\OpenIDConnect $openid_connect: The OpenID Connect service.

\Drupal\openid_connect\OpenIDConnectStateTokenInterface $state_token: The OpenID state token service.

\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger_factory: The logger factory.

File

src/Controller/OpenIDConnectRedirectController.php, line 76

Class

OpenIDConnectRedirectController
Redirect controller.

Namespace

Drupal\openid_connect\Controller

Code

public function __construct(OpenIDConnectClientManager $plugin_manager, OpenIDConnect $openid_connect, OpenIDConnectStateTokenInterface $state_token, RequestStack $request_stack, LoggerChannelFactoryInterface $logger_factory) {
  $this->pluginManager = $plugin_manager;
  $this->openIDConnect = $openid_connect;
  $this->stateToken = $state_token;
  $this->requestStack = $request_stack;
  $this->loggerFactory = $logger_factory;
}