You are here

public function SamlService::__construct in SAML Authentication 8.2

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

Constructor for Drupal\samlauth\SamlService.

Parameters

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

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

\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: The EntityTypeManager service.

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

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: The event dispatcher.

\Drupal\user\PrivateTempStoreFactory $temp_store_factory: A temp data store factory object.

File

src/SamlService.php, line 92

Class

SamlService
Governs communication between the SAML toolkit and the IDP / login behavior.

Namespace

Drupal\samlauth

Code

public function __construct(ExternalAuth $external_auth, ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, LoggerInterface $logger, EventDispatcherInterface $event_dispatcher, PrivateTempStoreFactory $temp_store_factory) {
  $this->externalAuth = $external_auth;
  $this->config = $config_factory
    ->get('samlauth.authentication');
  $this->entityTypeManager = $entity_type_manager;
  $this->logger = $logger;
  $this->eventDispatcher = $event_dispatcher;
  $this->privateTempStore = $temp_store_factory
    ->get('samlauth');
}