Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. DNSCheckValidation.php

function DNSCheckValidation::__construct

File

vendor/egulias/email-validator/src/Validation/DNSCheckValidation.php, line 62

Class

DNSCheckValidation

Namespace

Egulias\EmailValidator\Validation

Code

public function __construct(?DNSGetRecordWrapper $dnsGetRecord = null) {
    if (!function_exists('idn_to_ascii')) {
        throw new \LogicException(sprintf('The %s class requires the Intl extension.', __CLASS__));
    }
    if ($dnsGetRecord == null) {
        $dnsGetRecord = new DNSGetRecordWrapper();
    }
    $this->dnsGetRecord = $dnsGetRecord;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal