bool askConfirmation(OutputInterface $output, string|array $question, bool $default = true)
Asks a confirmation to the user.
The question will be asked until the user answers by nothing, yes, or no.
bool askConfirmation(OutputInterface $output, string|array $question, bool $default = true)
Asks a confirmation to the user.
The question will be asked until the user answers by nothing, yes, or no.
OutputInterface | $output | An Output instance |
string|array | $question | The question to ask |
bool | $default | The default answer if the user enters nothing |
bool | true if the user has confirmed, false otherwise |
Designed by : w10schools
service@w10schools.com
Please login to continue.