/
githubmirror
/
symfony
Обзор
Документация
Войти
/
githubmirror
/
symfony
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
8.2
src/Symfony/Component/Tui/Event/InputEvent.php
41 строка
898 B
Fabien Potencier
[Tui] Add the component
29 апр 2026, 11:20
29 апр 2026, 11:20
a818679
Код
Авторство
О чём код?
<?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\Tui\Event; use Symfony\Contracts\EventDispatcher\Event; /** * Event dispatched when raw terminal input is received. * * Dispatched before focus navigation and before the focused widget * receives input. Call {@see stopPropagation()} to consume the input * and prevent further processing. * * @experimental * * @author Fabien Potencier <fabien@symfony.com> */ class InputEvent extends Event { public function __construct( private readonly string $data, ) { } /** * The raw input data from the terminal. */ public function getData(): string { return $this->data; } }