src/Console/InitCommand.php
protected function confirm($text, $default = true)
    {
        $choices = $default ? 'Yn' : 'yN';
        $confirm = new ConfirmationQuestion("$text [$choices] ", $default);

        return $this->getHelper('question')->ask($this->input, $this->output, $confirm);
    }
protected function confirm($text, $default = true)
    {
        $choices = $default ? 'Yn' : 'yN';
        $confirm = new ConfirmationQuestion("$text [$choices] ", $default);

        return $this->getHelper('question')->ask($this->input, $this->output, $confirm);
    }
protected function confirm ( $ text , $ default = true ) { $ choices = $ default ? 'Yn' : 'yN' ; $ confirm = new ConfirmationQuestion ( "$text [$choices] " , $ default ) ; return $ this -> getHelper ( 'question' ) -> ask ( $ this -> input , $ this -> output , $ confirm ) ; }
Ask for user confirmation.

@param string $text
@param bool $default
@return bool
Ask for user confirmation .