You are here

public function CountryConstraintValidator::__construct in Address 8

Constructs a new CountryConstraintValidator object.

Parameters

\CommerceGuys\Addressing\Country\CountryRepositoryInterface $country_repository: The country repository.

File

src/Plugin/Validation/Constraint/CountryConstraintValidator.php, line 29

Class

CountryConstraintValidator
Validates the country constraint.

Namespace

Drupal\address\Plugin\Validation\Constraint

Code

public function __construct(CountryRepositoryInterface $country_repository) {
  $this->countryRepository = $country_repository;
}