You are here

public function SamlController::__construct in SAML Authentication 8.2

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

Constructor for Drupal\samlauth\Controller\SamlController.

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\Utility\Token $token: The token service.

File

src/Controller/SamlController.php, line 75

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, Token $token) {
  $this->saml = $saml;
  $this->requestStack = $request_stack;
  $this->config = $config_factory
    ->get('samlauth.authentication');
  $this->pathValidator = $path_validator;
  $this->token = $token;
}