Doctrine\DBAL\Migrations\Tools\Console\Command\MigrateCommand::canExecute PHP Method

canExecute() private method

private canExecute ( string $question, Symfony\Component\Console\Input\InputInterface $input, Symfony\Component\Console\Output\OutputInterface $output ) : boolean
$question string
$input Symfony\Component\Console\Input\InputInterface
$output Symfony\Component\Console\Output\OutputInterface
return boolean
    private function canExecute($question, InputInterface $input, OutputInterface $output)
    {
        if ($input->isInteractive() && !$this->askConfirmation($question, $input, $output)) {
            return false;
        }
        return true;
    }