You are here

private function Validator::createVisitor in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/validator/Validator.php \Symfony\Component\Validator\Validator::createVisitor()

Parameters

mixed $root:

Return value

ValidationVisitor

4 calls to Validator::createVisitor()
Validator::validate in vendor/symfony/validator/Validator.php
Validates a value.
Validator::validateProperty in vendor/symfony/validator/Validator.php
Validator::validatePropertyValue in vendor/symfony/validator/Validator.php
Validator::validateValue in vendor/symfony/validator/Validator.php
Validates a value against a constraint or a list of constraints.

File

vendor/symfony/validator/Validator.php, line 216

Class

Validator
Default implementation of {@link ValidatorInterface}.

Namespace

Symfony\Component\Validator

Code

private function createVisitor($root) {
  return new ValidationVisitor($root, $this->metadataFactory, $this->validatorFactory, $this->translator, $this->translationDomain, $this->objectInitializers);
}