public function RecursiveValidator::__construct in Plug 7
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
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Validator/ RecursiveValidator.php, line 60
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;
}