/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/Console/Exception/InputValidationFailedException.php
32 строки
781 B
Robin Chalas
[Console] Add validation constraints support to `#[MapInput]`
23 мар 2026, 22:58
23 мар 2026, 22:58
9ceb0fb
Код
Авторство
О чём код?
<?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\Console\Exception; use Symfony\Component\Validator\ConstraintViolationListInterface; /** * @author Robin Chalas <robin.chalas@gmail.com> */ final class InputValidationFailedException extends RuntimeException { public function __construct( string $message, private readonly ConstraintViolationListInterface $violations, ) { parent::__construct($message); } public function getViolations(): ConstraintViolationListInterface { return $this->violations; } }