Symfony\Component\Console\Helper\DialogHelper::ask
Asks a question to the user.
Signature
public function ask(OutputInterface
$output,
[string|array
$question = null,
[string
$default = null,
[array
$autocomplete = null]]] )
Parameters
$output
— Symfony\Component\Console\Output\OutputInterface- An Output instance
$question
— object- The question to ask
$default
— string- The default answer if none is given by the user
$autocomplete
— array- List of values to autocomplete
Returns
- string
- The user answer
Errors/Exceptions
-
RuntimeException
- If there is no data to read in the input stream