The QuestionHelper class provides helpers to interact with the user.
- author Fabien Potencier
CloneableInstantiable
| Methods |
| public ask(Symfony Asks a question to the user.
|
| public static disableStty() : void Prevents usage of stty. |
| public getName() : string |
| Properties |
| Methods |
protected formatChoiceQuestionChoices(Symfony
|
| protected writeError(Symfony Outputs an error message. |
| protected writePrompt(Symfony Outputs the question prompt. |
| Properties |
| private static bool $stdinIsInteractive |
| private static bool $stty = true |
| Methods |
| private autocomplete(Symfony Autocompletes a question.
|
| private cloneInputStream( $inputStream) Clones an input stream in order to act on one instance of the same stream without affecting the other instance.
|
| private doAsk( $inputStream, Symfony Asks the question to the user.
|
| private getDefaultAnswer(Symfony |
| private getHiddenResponse(Symfony Gets a hidden response from user.
|
| private isInteractiveInput( $inputStream) : bool |
| private mostRecentlyEnteredValue(string $entered) : string |
| private readInput( $inputStream, Symfony Reads one or more lines of input and returns what is read.
|
| private resetIOCodepage(int $cp, string|false $input) : string|false Sets console I/O to the specified code page and converts the user input. |
| private setIOCodepage() : int |
| private validateAttempts(callable $interviewer, Symfony Validates an attempt.
|
| Properties |
| private static bool $stdinIsInteractive |
| private static bool $stty = true |
| Methods |
| public static disableStty() : void Prevents usage of stty. |