ValidatorInterface deprecated
ValidatorInterface deprecated
interface ValidatorInterface
deprecated
Validates values and graphs of objects and arrays.
Methods
ConstraintViolationListInterface | validate(mixed $value, array|null $groups = null, bool $traverse = false, bool $deep = false) Validates a value. | |
ConstraintViolationListInterface | validateProperty(mixed $containingValue, string $property, array|null $groups = null) Validates a property of a value against its current value. | |
ConstraintViolationListInterface | validatePropertyValue(mixed $containingValue, string $property, string $value, array|null $groups = null) Validate a property of a value against a potential value. | |
ConstraintViolationListInterface | validateValue(mixed $value, Constraint|Constraint[] $constraints, array|null $groups = null) deprecated Validates a value against a constraint or a list of constraints. | |
MetadataFactoryInterface | getMetadataFactory() deprecated Returns the factory for metadata instances. |
Details
ConstraintViolationListInterface validate(mixed $value, array|null $groups = null, bool $traverse = false, bool $deep = false)
Validates a value.
The accepted values depend on the {@link MetadataFactoryInterface} implementation.
The signature changed with Symfony 2.5 (see {@link Validator\ValidatorInterface::validate()}. This signature will be disabled in Symfony 3.0.
ConstraintViolationListInterface validateProperty(mixed $containingValue, string $property, array|null $groups = null)
Validates a property of a value against its current value.
The accepted values depend on the {@link MetadataFactoryInterface} implementation.
ConstraintViolationListInterface validatePropertyValue(mixed $containingValue, string $property, string $value, array|null $groups = null)
Validate a property of a value against a potential value.
The accepted values depend on the {@link MetadataFactoryInterface} implementation.
ConstraintViolationListInterface validateValue(mixed $value, Constraint|Constraint[] $constraints, array|null $groups = null) deprecated
deprecated
Validates a value against a constraint or a list of constraints.
MetadataFactoryInterface getMetadataFactory() deprecated
deprecated
Returns the factory for metadata instances.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.1/Symfony/Component/Validator/ValidatorInterface.html