Details |
Letzte Änderung |
Log anzeigen
| RSS feed
| Revision |
Autor |
Zeilennr. |
Zeile |
| 148 |
lars |
1 |
<?php
|
|
|
2 |
|
|
|
3 |
declare(strict_types=1);
|
|
|
4 |
|
|
|
5 |
namespace Termwind\Helpers;
|
|
|
6 |
|
|
|
7 |
use Symfony\Component\Console\Formatter\OutputFormatter;
|
|
|
8 |
use Symfony\Component\Console\Helper\SymfonyQuestionHelper;
|
|
|
9 |
use Symfony\Component\Console\Output\OutputInterface;
|
|
|
10 |
use Symfony\Component\Console\Question\Question;
|
|
|
11 |
|
|
|
12 |
/**
|
|
|
13 |
* @internal
|
|
|
14 |
*/
|
|
|
15 |
final class QuestionHelper extends SymfonyQuestionHelper
|
|
|
16 |
{
|
|
|
17 |
/**
|
|
|
18 |
* {@inheritdoc}
|
|
|
19 |
*/
|
|
|
20 |
protected function writePrompt(OutputInterface $output, Question $question): void
|
|
|
21 |
{
|
|
|
22 |
$text = OutputFormatter::escapeTrailingBackslash($question->getQuestion());
|
|
|
23 |
$output->write($text);
|
|
|
24 |
}
|
|
|
25 |
}
|