Doctrine\DBAL\Migrations\Tools\Console\Command\AbstractCommand::askConfirmation PHP Method

askConfirmation() protected method

This method ensure that we stay compatible with symfony console 2.3 by using the deprecated dialog helper but use the ConfirmationQuestion when available.
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));
    }