Classes/Console/Mvc/Cli/ConsoleOutput.php
public function askConfirmation($question, $default = true)
    {
        $question = new ConfirmationQuestion($question, $default);

        return $this->getQuestionHelper()->ask($this->getInput(), $this->output, $question);
    }
public function askConfirmation($question, $default = true)
    {
        $question = new ConfirmationQuestion($question, $default);

        return $this->getQuestionHelper()->ask($this->getInput(), $this->output, $question);
    }
Asks a confirmation to the user.

The question will be asked until the user answers by nothing, yes, or no.

@param string|array $question The question to ask. If an array each array item is turned into one line of a multi-line question
@param bool $default The default answer if the user enters nothing
@return bool true if the user has confirmed, false otherwise