You are here

public function DrupalUserProcessor::__construct in Lightweight Directory Access Protocol (LDAP) 8.4

Same name and namespace in other branches
  1. 8.3 ldap_user/src/Processor/DrupalUserProcessor.php \Drupal\ldap_user\Processor\DrupalUserProcessor::__construct()

Constructor.

@todo Make this service smaller. (The number of dependencies alone makes this clear.)

Parameters

\Psr\Log\LoggerInterface $logger: Logger.

\Drupal\Core\Config\ConfigFactory $config_factory: Config factory.

\Drupal\ldap_servers\Logger\LdapDetailLog $detail_log: Detail log.

\Drupal\ldap_servers\Processor\TokenProcessor $token_processor: Token processor.

\Drupal\externalauth\Authmap $authmap: Authmap.

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

\Drupal\Core\File\FileSystemInterface $file_system: File system.

\Drupal\Core\Utility\Token $token: Token.

\Drupal\Core\Extension\ModuleHandler $module_handler: Module handler.

\Drupal\Core\Session\AccountInterface $current_user: Current user.

\Drupal\ldap_servers\LdapUserManager $ldap_user_manager: LDAP user manager.

\Symfony\Component\EventDispatcher\EventDispatcherInterface $event_dispatcher: Event dispatcher.

\Drupal\ldap_user\FieldProvider $field_provider: Field Provider.

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

File

ldap_user/src/Processor/DrupalUserProcessor.php, line 197

Class

DrupalUserProcessor
Handles processing of a user from LDAP to Drupal.

Namespace

Drupal\ldap_user\Processor

Code

public function __construct(LoggerInterface $logger, ConfigFactory $config_factory, LdapDetailLog $detail_log, TokenProcessor $token_processor, Authmap $authmap, EntityTypeManagerInterface $entity_type_manager, FileSystemInterface $file_system, Token $token, ModuleHandler $module_handler, AccountInterface $current_user, LdapUserManager $ldap_user_manager, EventDispatcherInterface $event_dispatcher, FieldProvider $field_provider, MessengerInterface $messenger) {
  $this->logger = $logger;
  $this->config = $config_factory
    ->get('ldap_user.settings');
  $this->configAuthentication = $config_factory
    ->get('ldap_authentication.settings');
  $this->detailLog = $detail_log;
  $this->tokenProcessor = $token_processor;
  $this->externalAuth = $authmap;
  $this->entityTypeManager = $entity_type_manager;
  $this->fileSystem = $file_system;
  $this->token = $token;
  $this->moduleHandler = $module_handler;
  $this->currentUser = $current_user;
  $this->ldapUserManager = $ldap_user_manager;
  $this->eventDispatcher = $event_dispatcher;
  $this->fieldProvider = $field_provider;
  $this->messenger = $messenger;
}