You are here

public function UserSyncEventSubscriber::__construct in SAML Authentication 8.2

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

Construct a new SamlauthUserSyncSubscriber.

Parameters

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

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

\Egulias\EmailValidator\EmailValidator $email_validator: The email validator.

\Drupal\Core\TypedData\TypedDataManagerInterface $typed_data_manager: The typed data manager.

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

File

src/EventSubscriber/UserSyncEventSubscriber.php, line 75

Class

UserSyncEventSubscriber
Event subscriber that synchronizes user properties on a user_sync event.

Namespace

Drupal\samlauth\EventSubscriber

Code

public function __construct(ConfigFactoryInterface $config_factory, EntityTypeManagerInterface $entity_type_manager, TypedDataManagerInterface $typed_data_manager, EmailValidator $email_validator, LoggerInterface $logger) {
  $this->entityTypeManager = $entity_type_manager;
  $this->emailValidator = $email_validator;
  $this->logger = $logger;
  $this->typedDataManager = $typed_data_manager;
  $this->config = $config_factory
    ->get('samlauth.authentication');
}