/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/Validator/ConstraintValidatorInterface.php
36 строк
987 B
Christophe Coevoet
[Validator] Make constraint validators reentrant instead of being stateful
30 апр 2026, 09:32
30 апр 2026, 09:32
d268b72
Код
Авторство
О чём код?
<?php /* * This file is part of the Symfony package. * * (c) Fabien Potencier <fabien@symfony.com> * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace Symfony\Component\Validator; use Symfony\Component\Validator\Context\ExecutionContextInterface; /** * @author Bernhard Schussek <bschussek@gmail.com> * * @method void validateInContext(mixed $value, Constraint $constraint, ExecutionContextInterface $context) */ interface ConstraintValidatorInterface { /** * Initializes the constraint validator. * * @deprecated since Symfony 8.1, use "validateInContext()" instead */ public function initialize(ExecutionContextInterface $context): void; /** * Checks if the passed value is valid. * * @deprecated since Symfony 8.1, use "validateInContext()" instead */ public function validate(mixed $value, Constraint $constraint): void; }