protected askConfirmation ( $question, Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : mixed | ||
$question | ||
$input | Symfony\Component\Console\Input\InputInterface | |
$output | Symfony\Component\Console\Output\OutputInterface | |
return | mixed |
protected function askConfirmation($question, InputInterface $input, OutputInterface $output)
{
if (!$this->getHelperSet()->has('question')) {
return $this->getHelper('dialog')->askConfirmation($output, '<question>' . $question . '</question>', false);
}
return $this->getHelper('question')->ask($input, $output, new ConfirmationQuestion($question));
}