You are here

public function SimplesamlphpDrupalAuth::__construct in simpleSAMLphp Authentication 8.3

Parameters

SimplesamlphpAuthManager $simplesaml_auth: The SimpleSAML Authentication helper service.

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

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The entity type manager.

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

\Drupal\externalauth\ExternalAuthInterface $externalauth: The ExternalAuth service.

\Drupal\Core\Session\AccountInterface $account: The currently logged in user.

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

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.

File

src/Service/SimplesamlphpDrupalAuth.php, line 98

Class

SimplesamlphpDrupalAuth
Service to link SimpleSAMLphp authentication with Drupal users.

Namespace

Drupal\simplesamlphp_auth\Service

Code

public function __construct(SimplesamlphpAuthManager $simplesaml_auth, ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, LoggerInterface $logger, ExternalAuthInterface $externalauth, AccountInterface $account, MessengerInterface $messenger, ModuleHandlerInterface $module_handler) {
  $this->simplesamlAuth = $simplesaml_auth;
  $this->config = $config_factory
    ->get('simplesamlphp_auth.settings');
  $this->entityTypeManager = $entity_type_manager;
  $this->logger = $logger;
  $this->externalauth = $externalauth;
  $this->currentUser = $account;
  $this->messenger = $messenger;
  $this->moduleHandler = $module_handler;
}