Symfony2 API
Class

Symfony\Component\Validator\Constraints\ImageValidator

class ImageValidator extends FileValidator

Validates whether a value is a valid image file and is valid against minWidth, maxWidth, minHeight and maxHeight constraints

Methods

validate(mixed $value, Constraint $constraint)

Checks if the passed value is valid.

Details

at line 28
public validate(mixed $value, Constraint $constraint)

Checks if the passed value is valid.

Parameters

mixed $value The value that should be validated
Constraint $constraint The constraint for the validation