private function askConfirmation(InputInterface $input, OutputInterface $output, $question, $default = true)
    {
        if ($this->getHelperSet()->has('question')) {
            $question = new ConfirmationQuestion($question, $default);

            return $this->getHelper('question')->ask($input, $output, $question);
        }

        return $this->getHelper('dialog')->askConfirmation($output, $question, $default);
    }
private function askConfirmation(InputInterface $input, OutputInterface $output, $question, $default = true)
    {
        if ($this->getHelperSet()->has('question')) {
            $question = new ConfirmationQuestion($question, $default);

            return $this->getHelper('question')->ask($input, $output, $question);
        }

        return $this->getHelper('dialog')->askConfirmation($output, $question, $default);
    }
private function askConfirmation ( InputInterface $ input , OutputInterface $ output , $ question , $ default = true ) { if ( $ this -> getHelperSet ( ) -> has ( 'question' ) ) { $ question = new ConfirmationQuestion ( $ question , $ default ) ; return $ this -> getHelper ( 'question' ) -> ask ( $ input , $ output , $ question ) ; } return $ this -> getHelper ( 'dialog' ) -> askConfirmation ( $ output , $ question , $ default ) ; }
Ask for confirmation with the question helper or the dialog helper for symfony < 2.5 compatibility.

@param InputInterface  $input
@param OutputInterface $output
@param string          $question
@param bool            $default

@return string
Ask for confirmation with the question helper or the dialog helper for symfony < 2 . 5 compatibility .