Commit 87967798 authored by Dave Marshall's avatar Dave Marshall

Add alias method to conform with ConstraintValidatorInterface in 2.3

parent 8bf675f5
...@@ -24,4 +24,9 @@ class CustomValidator extends ConstraintValidator ...@@ -24,4 +24,9 @@ class CustomValidator extends ConstraintValidator
// Validate... // Validate...
return true; return true;
} }
public function validate($value, Constraint $constraint)
{
return $this->isValid($value, $constraint);
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment