public function RecursiveValidator::__construct in Zircon Profile 8
Same name in this branch
- 8 vendor/symfony/validator/Validator/RecursiveValidator.php \Symfony\Component\Validator\Validator\RecursiveValidator::__construct()
- 8 core/lib/Drupal/Core/TypedData/Validation/RecursiveValidator.php \Drupal\Core\TypedData\Validation\RecursiveValidator::__construct()
Same name and namespace in other branches
- 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\ValidatorCode
public function __construct(ExecutionContextFactoryInterface $contextFactory, MetadataFactoryInterface $metadataFactory, ConstraintValidatorFactoryInterface $validatorFactory, array $objectInitializers = array()) {
$this->contextFactory = $contextFactory;
$this->metadataFactory = $metadataFactory;
$this->validatorFactory = $validatorFactory;
$this->objectInitializers = $objectInitializers;
}