You are here

public function SamlController::__construct in SAML Authentication 8.3

Same name and namespace in other branches
  1. 8 src/Controller/SamlController.php \Drupal\samlauth\Controller\SamlController::__construct()
  2. 8.2 src/Controller/SamlController.php \Drupal\samlauth\Controller\SamlController::__construct()
  3. 4.x src/Controller/SamlController.php \Drupal\samlauth\Controller\SamlController::__construct()

SamlController constructor.

Parameters

\Drupal\samlauth\SamlService $saml: The samlauth SAML service.

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

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

\Drupal\Core\Path\PathValidatorInterface $path_validator: The PathValidator service.

\Drupal\Core\Render\RendererInterface $renderer: The Renderer service.

\Drupal\Core\Utility\Token $token: The token service.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.

\Psr\Log\LoggerInterface $logger: A logger instance.

File

src/Controller/SamlController.php, line 106

Class

SamlController
Returns responses for samlauth module routes.

Namespace

Drupal\samlauth\Controller

Code

public function __construct(SamlService $saml, RequestStack $request_stack, ConfigFactoryInterface $config_factory, PathValidatorInterface $path_validator, RendererInterface $renderer, Token $token, MessengerInterface $messenger, LoggerInterface $logger) {
  $this->saml = $saml;
  $this->requestStack = $request_stack;
  $this->configFactory = $config_factory;
  $this->pathValidator = $path_validator;
  $this->renderer = $renderer;
  $this->token = $token;
  $this->messenger = $messenger;
  $this->logger = $logger;
}