Sindbad~EG File Manager

Current Path : /opt/nginxhttpd_/vendor/symfony/maker-bundle/src/Resources/skeleton/validator/
Upload File :
Current File : //opt/nginxhttpd_/vendor/symfony/maker-bundle/src/Resources/skeleton/validator/Validator.tpl.php

<?= "<?php\n" ?>

namespace <?= $namespace; ?>;

use Symfony\Component\Validator\Constraint;
use Symfony\Component\Validator\ConstraintValidator;

class <?= $class_name ?> extends ConstraintValidator
{
    public function validate($value, Constraint $constraint)
    {
        /* @var <?= $constraint_class_name ?> $constraint */

        if (null === $value || '' === $value) {
            return;
        }

        // TODO: implement the validation here
        $this->context->buildViolation($constraint->message)
            ->setParameter('{{ value }}', $value)
            ->addViolation();
    }
}

Sindbad File Manager Version 1.0, Coded By Sindbad EG ~ The Terrorists