Validator deprecated::hasMetadataFor()

bool hasMetadataFor(mixed $value) Returns whether the class is able to return metadata for the given value. Parameters mixed $value Some value Return Value bool Whether metadata can be returned for that value

Validator deprecated::getMetadataFor()

MetadataInterface getMetadataFor(mixed $value) Returns the metadata for the given value. Parameters mixed $value Some value Return Value MetadataInterface The metadata for the value Exceptions NoSuchMetadataException If no metadata exists for the given value

ValidationVisitorInterface deprecated::visit()

visit(MetadataInterface $metadata, mixed $value, string $group, string $propertyPath) Validates a value against the constraints defined in some metadata. This method implements the Visitor design pattern. See also {@link ValidationVisitorInterface}. Parameters MetadataInterface $metadata The metadata holding the constraints. mixed $value The value to validate. string $group The validation group to validate. string $propertyPath The current property path in the validation graph.

Validator deprecated

class Validator implements ValidatorInterface, MetadataFactoryInterface deprecated since version 2.5, to be removed in 3.0. Use {@link Validator\RecursiveValidator} instead. Default implementation of {@link ValidatorInterface}. Methods __construct(MetadataFactoryInterface $metadataFactory, ConstraintValidatorFactoryInterface $validatorFactory, TranslatorInterface $translator, $translationDomain = 'validators', array $objectInitializers = array()) MetadataFactoryInterface getMet

ValidationVisitor deprecated::validate()

validate(mixed $value, string $group, string $propertyPath, bool $traverse = false, bool $deep = false) Validates a value. If the value is an array or a traversable object, you can set the parameter $traverse to true in order to run through the collection and validate each element. If these elements can be collections again and you want to traverse them recursively, set the parameter $deep to true as well. If you set $traversable to true, the visitor will nevertheless try to find met

ValidationVisitorInterface deprecated

interface ValidationVisitorInterface deprecated since version 2.5, to be removed in 3.0. Validates values against constraints defined in {@link MetadataInterface} instances. This interface is an implementation of the Visitor design pattern. A value is validated by first passing it to the {@link validate} method. That method will determine the matching {@link MetadataInterface} for validating the value. It then calls the {@link MetadataInterface::accept} method of that metadata. accept()

ValidationVisitor deprecated::visit()

visit(MetadataInterface $metadata, mixed $value, string $group, string $propertyPath) Validates a value against the constraints defined in some metadata. This method implements the Visitor design pattern. See also {@link ValidationVisitorInterface}. Parameters MetadataInterface $metadata The metadata holding the constraints. mixed $value The value to validate. string $group The validation group to validate. string $propertyPath The current property path in the validation graph.

ValidationVisitorInterface deprecated::validate()

validate(mixed $value, string $group, string $propertyPath, bool $traverse = false, bool $deep = false) Validates a value. If the value is an array or a traversable object, you can set the parameter $traverse to true in order to run through the collection and validate each element. If these elements can be collections again and you want to traverse them recursively, set the parameter $deep to true as well. If you set $traversable to true, the visitor will nevertheless try to find met

ValidationVisitor deprecated::getRoot()

mixed getRoot() Returns the value at which validation was started in the object graph. Return Value mixed The root value.

ValidationVisitor deprecated::getMetadataFactory()

MetadataFactoryInterface getMetadataFactory() Returns the factory for validation metadata objects. Return Value MetadataFactoryInterface The metadata factory.