You are here

public function UserEmailVerification::__construct in User email verification 8

Constructs a new DietService object.

Parameters

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

\Drupal\Core\Database\Connection $database: The current primary database.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

\Drupal\Component\Datetime\TimeInterface $datetime_time: The time service.

\Drupal\Core\Queue\QueueFactory $queue: The queue factory object.

\Drupal\Core\Mail\MailManagerInterface $mail_manager: Mail manager service.

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

\Drupal\Core\Session\AccountProxyInterface $current_user: The current active user.

\Drupal\Core\Language\LanguageManagerInterface $language_manager: The language manager.

File

src/UserEmailVerification.php, line 126

Class

UserEmailVerification
User email verification helper service.

Namespace

Drupal\user_email_verification

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, Connection $database, ConfigFactoryInterface $config_factory, TimeInterface $datetime_time, QueueFactory $queue, MailManagerInterface $mail_manager, Token $token, AccountProxyInterface $current_user, LanguageManagerInterface $language_manager) {
  $this->entityTypeManager = $entity_type_manager;
  $this->database = $database;
  $this->config = $config_factory
    ->get('user_email_verification.settings');
  $this->configUserSettings = $config_factory
    ->get('user.settings');
  $this->configSystemSite = $config_factory
    ->get('system.site');
  $this->time = $datetime_time;
  $this->queue = $queue;
  $this->mailManager = $mail_manager;
  $this->token = $token;
  $this->currentUser = $current_user;
  $this->languageManager = $language_manager;
}