Executes the validators of the given constraints for the given value.
mixed $value The value to validate.:
Constraint[] $constraints The constraints to match against.:
private function executeConstraintValidators($value, array $constraints) {
foreach ($constraints as $constraint) {
$validator = $this->globalContext
->getValidatorFactory()
->getInstance($constraint);
$validator
->initialize($this);
$validator
->validate($value, $constraint);
}
}