You are here

public function OpenIDConnect::__construct in OpenID Connect / OAuth client 8

Same name and namespace in other branches
  1. 2.x src/OpenIDConnect.php \Drupal\openid_connect\OpenIDConnect::__construct()

Construct an instance of the OpenID Connect service.

Parameters

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

\Drupal\openid_connect\OpenIDConnectAuthmap $authmap: The OpenID Connect authmap service.

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

\Drupal\Core\Entity\EntityFieldManagerInterface $entity_field_manager: The entity field manager.

\Drupal\Core\Session\AccountProxyInterface $current_user: Account proxy for the currently logged-in user.

\Drupal\user\UserDataInterface $user_data: The user data service.

\Drupal\Component\Utility\EmailValidatorInterface $email_validator: The email validator service.

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

\Drupal\Core\Extension\ModuleHandler $module_handler: The module handler.

\Drupal\Core\Logger\LoggerChannelFactoryInterface $logger: A logger channel factory instance.

\Drupal\Core\File\FileSystemInterface $fileSystem: The file system service.

File

src/OpenIDConnect.php, line 129

Class

OpenIDConnect
Main service of the OpenID Connect module.

Namespace

Drupal\openid_connect

Code

public function __construct(ConfigFactoryInterface $config_factory, OpenIDConnectAuthmap $authmap, EntityTypeManagerInterface $entity_type_manager, EntityFieldManagerInterface $entity_field_manager, AccountProxyInterface $current_user, UserDataInterface $user_data, EmailValidatorInterface $email_validator, MessengerInterface $messenger, ModuleHandler $module_handler, LoggerChannelFactoryInterface $logger, FileSystemInterface $fileSystem) {
  $this->configFactory = $config_factory;
  $this->authmap = $authmap;
  $this->userStorage = $entity_type_manager
    ->getStorage('user');
  $this->entityFieldManager = $entity_field_manager;
  $this->currentUser = $current_user;
  $this->userData = $user_data;
  $this->emailValidator = $email_validator;
  $this->messenger = $messenger;
  $this->moduleHandler = $module_handler;
  $this->logger = $logger
    ->get('openid_connect');
  $this->fileSystem = $fileSystem;
}