ValidatorInterface deprecated::validateValue()

ConstraintViolationListInterface validateValue(mixed $value, Constraint|Constraint[] $constraints, array|null $groups = null) deprecated

deprecated

since version 2.5, to be removed in 3.0. Renamed to {@link Validator\ValidatorInterface::validate()} in Symfony 2.5.

Validates a value against a constraint or a list of constraints.

Parameters

mixed $value The value to validate.
Constraint|Constraint[] $constraints The constraint(s) to validate against.
array|null $groups The validation groups to validate.

Return Value

ConstraintViolationListInterface A list of constraint violations. If the list is empty, validation succeeded.
doc_Symfony
2016-10-28 06:36:51
Comments
Leave a Comment

Please login to continue.