Symfony\Component\Console\Helper\DialogHelper::askConfirmation
Asks a confirmation to the user.
The question will be asked until the user answers by nothing, yes, or no.
Signature
public function askConfirmation(OutputInterface
$output,
[string|array
$question = true,
[Boolean
$default = true]] )
Parameters
$output
— Symfony\Component\Console\Output\OutputInterface- An Output instance
$question
— object- The question to ask
$default
— object- The default answer if the user enters nothing
Returns
- Boolean
- true if the user has confirmed, false otherwise