private function askConfirmation(InputInterface $input, OutputInterface $output, $question, $default)
    {
        /** @var QuestionHelper $questionHelper */
        $questionHelper = $this->getHelperSet()->get('question');
        $question = new ConfirmationQuestion($question, $default);

        return (bool) $questionHelper->ask($input, $output, $question);
    }
private function askConfirmation(InputInterface $input, OutputInterface $output, $question, $default)
    {
        /** @var QuestionHelper $questionHelper */
        $questionHelper = $this->getHelperSet()->get('question');
        $question = new ConfirmationQuestion($question, $default);

        return (bool) $questionHelper->ask($input, $output, $question);
    }
private function askConfirmation ( InputInterface $ input , OutputInterface $ output , $ question , $ default ) { /** @var QuestionHelper $questionHelper */ $ questionHelper = $ this -> getHelperSet ( ) -> get ( 'question' ) ; $ question = new ConfirmationQuestion ( $ question , $ default ) ; return ( bool ) $ questionHelper -> ask ( $ input , $ output , $ question ) ; }
Prompts to the user a message to ask him a confirmation.

@param string $question
@param bool   $default

@return bool User choice
Prompts to the user a message to ask him a confirmation .