public function GroupUserUpdateProcessor::__construct in Lightweight Directory Access Protocol (LDAP) 8.4
Same name and namespace in other branches
- 8.3 ldap_user/src/Processor/GroupUserUpdateProcessor.php \Drupal\ldap_user\Processor\GroupUserUpdateProcessor::__construct()
Constructor for update process.
Parameters
\Psr\Log\LoggerInterface $logger: Logger.
\Drupal\ldap_servers\Logger\LdapDetailLog $detail_log: Detail log.
\Drupal\Core\Config\ConfigFactory $config: Config factory.
\Drupal\Core\State\StateInterface $state: State.
\Drupal\Core\Extension\ModuleHandler $module_handler: Module handler.
\Drupal\Core\Entity\EntityTypeManagerInterface $entity_type_manager: Entity type manager.
\Drupal\externalauth\Authmap $external_auth: Externalauth.
\Drupal\ldap_query\Controller\QueryController $query_controller: Query controller.
\Drupal\ldap_user\Processor\DrupalUserProcessor $drupal_user_processor: Drupal user processor.
File
- ldap_user/
src/ Processor/ GroupUserUpdateProcessor.php, line 122
Class
- GroupUserUpdateProcessor
- Provides functionality to generically update existing users.
Namespace
Drupal\ldap_user\ProcessorCode
public function __construct(LoggerInterface $logger, LdapDetailLog $detail_log, ConfigFactory $config, StateInterface $state, ModuleHandler $module_handler, EntityTypeManagerInterface $entity_type_manager, Authmap $external_auth, QueryController $query_controller, DrupalUserProcessor $drupal_user_processor) {
$this->logger = $logger;
$this->detailLog = $detail_log;
$this->config = $config
->get('ldap_user.settings');
$this->drupalUserProcessor = $drupal_user_processor;
$this->state = $state;
$this->moduleHandler = $module_handler;
$this->entityTypeManager = $entity_type_manager;
$this->externalAuth = $external_auth;
$this->queryController = $query_controller;
$this->ldapServer = $this->entityTypeManager
->getStorage('ldap_server')
->load($this->config
->get('drupalAcctProvisionServer'));
$this->userStorage = $this->entityTypeManager
->getStorage('user');
}