$helperSet
$helperSet :
Symfony Style Guide compliant question helper.
ask(\Symfony\Component\Console\Input\InputInterface $input, \Symfony\Component\Console\Output\OutputInterface $output, \Symfony\Component\Console\Question\Question $question) : mixed
Asks a question to the user.
| \Symfony\Component\Console\Input\InputInterface | $input | |
| \Symfony\Component\Console\Output\OutputInterface | $output | |
| \Symfony\Component\Console\Question\Question | $question |
If there is no data to read in the input stream
The user answer
setHelperSet(\Symfony\Component\Console\Helper\HelperSet $helperSet = null)
Sets the helper set associated with this helper.
| \Symfony\Component\Console\Helper\HelperSet | $helperSet |
getHelperSet() : \Symfony\Component\Console\Helper\HelperSet
Gets the helper set associated with this helper.
A HelperSet instance
strlenWithoutDecoration(\Symfony\Component\Console\Formatter\OutputFormatterInterface $formatter, $string)
| \Symfony\Component\Console\Formatter\OutputFormatterInterface | $formatter | |
| $string |
removeDecoration(\Symfony\Component\Console\Formatter\OutputFormatterInterface $formatter, $string)
| \Symfony\Component\Console\Formatter\OutputFormatterInterface | $formatter | |
| $string |
writePrompt(\Symfony\Component\Console\Output\OutputInterface $output, \Symfony\Component\Console\Question\Question $question)
Outputs the question prompt.
| \Symfony\Component\Console\Output\OutputInterface | $output | |
| \Symfony\Component\Console\Question\Question | $question |
writeError(\Symfony\Component\Console\Output\OutputInterface $output, \Exception $error)
Outputs an error message.
| \Symfony\Component\Console\Output\OutputInterface | $output | |
| \Exception | $error |
doAsk(\Symfony\Component\Console\Output\OutputInterface $output, \Symfony\Component\Console\Question\Question $question) : boolean|mixed|string|null
Asks the question to the user.
| \Symfony\Component\Console\Output\OutputInterface | $output | |
| \Symfony\Component\Console\Question\Question | $question |
In case the fallback is deactivated and the response cannot be hidden
autocomplete(\Symfony\Component\Console\Output\OutputInterface $output, \Symfony\Component\Console\Question\Question $question, resource $inputStream, array $autocomplete)
Autocompletes a question.
| \Symfony\Component\Console\Output\OutputInterface | $output | |
| \Symfony\Component\Console\Question\Question | $question | |
| resource | $inputStream | |
| array | $autocomplete |
getHiddenResponse(\Symfony\Component\Console\Output\OutputInterface $output, resource $inputStream)
Gets a hidden response from user.
| \Symfony\Component\Console\Output\OutputInterface | $output | An Output instance |
| resource | $inputStream | The handler resource |
In case the fallback is deactivated and the response cannot be hidden
validateAttempts(callable $interviewer, \Symfony\Component\Console\Output\OutputInterface $output, \Symfony\Component\Console\Question\Question $question) : mixed
Validates an attempt.
| callable | $interviewer | A callable that will ask for a question and return the result |
| \Symfony\Component\Console\Output\OutputInterface | $output | An Output instance |
| \Symfony\Component\Console\Question\Question | $question | A Question instance |
In case the max number of attempts has been reached and no valid response has been given
The validated response