You are here

public function RecursiveValidator::__construct in Zircon Profile 8

Same name in this branch
  1. 8 vendor/symfony/validator/Validator/RecursiveValidator.php \Symfony\Component\Validator\Validator\RecursiveValidator::__construct()
  2. 8 core/lib/Drupal/Core/TypedData/Validation/RecursiveValidator.php \Drupal\Core\TypedData\Validation\RecursiveValidator::__construct()
Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Validator/RecursiveValidator.php \Symfony\Component\Validator\Validator\RecursiveValidator::__construct()

Creates a new validator.

Parameters

ExecutionContextFactoryInterface $contextFactory The factory for: creating new contexts

MetadataFactoryInterface $metadataFactory The factory for: fetching the metadata of validated objects

ConstraintValidatorFactoryInterface $validatorFactory The factory for creating: constraint validators

ObjectInitializerInterface[] $objectInitializers The object initializers:

File

vendor/symfony/validator/Validator/RecursiveValidator.php, line 65

Class

RecursiveValidator
Recursive implementation of {@link ValidatorInterface}.

Namespace

Symfony\Component\Validator\Validator

Code

public function __construct(ExecutionContextFactoryInterface $contextFactory, MetadataFactoryInterface $metadataFactory, ConstraintValidatorFactoryInterface $validatorFactory, array $objectInitializers = array()) {
  $this->contextFactory = $contextFactory;
  $this->metadataFactory = $metadataFactory;
  $this->validatorFactory = $validatorFactory;
  $this->objectInitializers = $objectInitializers;
}