public function SimplesamlphpAuthController::__construct in simpleSAMLphp Authentication 8.3
Parameters
\Drupal\simplesamlphp_auth\Service\SimplesamlphpAuthManager $simplesaml: The SimpleSAML Authentication helper service.
\Drupal\simplesamlphp_auth\Service\SimplesamlphpDrupalAuth $simplesaml_drupalauth: The SimpleSAML Drupal Authentication service.
\Drupal\Core\Routing\UrlGeneratorInterface $url_generator: The url generator service.
\Symfony\Component\HttpFoundation\RequestStack $request_stack: The request stack.
\Drupal\Core\Session\AccountInterface $account: The current account.
\Drupal\Core\Path\PathValidatorInterface $path_validator: The path validator.
\Psr\Log\LoggerInterface $logger: A logger instance.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory.
File
- src/
Controller/ SimplesamlphpAuthController.php, line 100
Class
- SimplesamlphpAuthController
- Controller routines for simplesamlphp_auth routes.
Namespace
Drupal\simplesamlphp_auth\ControllerCode
public function __construct(SimplesamlphpAuthManager $simplesaml, SimplesamlphpDrupalAuth $simplesaml_drupalauth, UrlGeneratorInterface $url_generator, RequestStack $request_stack, AccountInterface $account, PathValidatorInterface $path_validator, LoggerInterface $logger, ConfigFactoryInterface $config_factory) {
$this->simplesaml = $simplesaml;
$this->simplesamlDrupalauth = $simplesaml_drupalauth;
$this->urlGenerator = $url_generator;
$this->requestStack = $request_stack;
$this->account = $account;
$this->pathValidator = $path_validator;
$this->logger = $logger;
$this->config = $config_factory
->get('simplesamlphp_auth.settings');
}