You are here

public function DomainValidator::__construct in Domain Access 8

Constructs a DomainValidator object.

Parameters

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

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

\GuzzleHttp\ClientInterface $http_client: A Guzzle client object.

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

File

domain/src/DomainValidator.php, line 59

Class

DomainValidator
Provides validation of domain strings against RFC standards for hostnames.

Namespace

Drupal\domain

Code

public function __construct(ModuleHandlerInterface $module_handler, ConfigFactoryInterface $config_factory, ClientInterface $http_client, EntityTypeManagerInterface $entity_type_manager) {
  $this->moduleHandler = $module_handler;
  $this->configFactory = $config_factory;
  $this->httpClient = $http_client;
  $this->entityTypeManager = $entity_type_manager;
}