You are here

public function SimplesamlSubscriber::__construct in simpleSAMLphp Authentication 8.3

Parameters

\Drupal\simplesamlphp_auth\Service\SimplesamlphpAuthManager $simplesaml: The SimpleSAML Authentication helper service.

\Drupal\Core\Session\AccountInterface $account: The current account.

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

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

\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match.

File

src/EventSubscriber/SimplesamlSubscriber.php, line 70

Class

SimplesamlSubscriber
Event subscriber subscribing to KernelEvents::REQUEST.

Namespace

Drupal\simplesamlphp_auth\EventSubscriber

Code

public function __construct(SimplesamlphpAuthManager $simplesaml, AccountInterface $account, ConfigFactoryInterface $config_factory, LoggerInterface $logger, RouteMatchInterface $route_match) {
  $this->simplesaml = $simplesaml;
  $this->account = $account;
  $this->config = $config_factory
    ->get('simplesamlphp_auth.settings');
  $this->logger = $logger;
  $this->routeMatch = $route_match;
}