You are here

public function ExternalAuth::__construct in External Authentication 8

Same name and namespace in other branches
  1. 2.0.x src/ExternalAuth.php \Drupal\externalauth\ExternalAuth::__construct()

Parameters

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

AuthmapInterface $authmap: The authmap service.

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

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

File

src/ExternalAuth.php, line 70

Class

ExternalAuth
Class ExternalAuth.

Namespace

Drupal\externalauth

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, AuthmapInterface $authmap, LoggerInterface $logger, EventDispatcherInterface $event_dispatcher) {
  $this->entityTypeManager = $entity_type_manager;
  $this->authmap = $authmap;
  $this->logger = $logger;
  $this->eventDispatcher = $event_dispatcher;
}