Warning: Undefined variable $namespace in /home/ldt/public_html/canvas/udoit/vendor/symfony/maker-bundle/src/Resources/skeleton/validator/Validator.tpl.php on line 3
; use Symfony\Component\Validator\Constraint; use Symfony\Component\Validator\ConstraintValidator; class
Warning: Undefined variable $class_name in /home/ldt/public_html/canvas/udoit/vendor/symfony/maker-bundle/src/Resources/skeleton/validator/Validator.tpl.php on line 8
extends ConstraintValidator { public function validate($value, Constraint $constraint) { /* @var
Warning: Undefined variable $constraint_class_name in /home/ldt/public_html/canvas/udoit/vendor/symfony/maker-bundle/src/Resources/skeleton/validator/Validator.tpl.php on line 12
$constraint */ if (null === $value || '' === $value) { return; } // TODO: implement the validation here $this->context->buildViolation($constraint->message) ->setParameter('{{ value }}', $value) ->addViolation(); } }