You are here

public function EmailConfirmerManager::__construct in Email confirmer 8

Construct an EmailConfirmerManager.

Parameters

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

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

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

File

src/EmailConfirmerManager.php, line 45

Class

EmailConfirmerManager
Email confirmation service.

Namespace

Drupal\email_confirmer

Code

public function __construct(EntityTypeManagerInterface $entity_type_manager, ConfigFactoryInterface $config_factory, TimeInterface $time) {
  $this->entityTypeManager = $entity_type_manager;
  $this->config = $config_factory
    ->get('email_confirmer.settings');
  $this->time = $time;
}