public function askConfirmation($question, $default = true)
	{
		/** @var QuestionHelper $helper */
		$helper = $this->_helperSet->get('question');
		$confirmation_question = new ConfirmationQuestion(
			'<question>' . $question . ' [' . ($default ? 'y' : 'n') . ']?</question> ',
			$default
		);

		return $helper->ask($this->_input, $this->_output, $confirmation_question);
	}
public function askConfirmation($question, $default = true)
	{
		/** @var QuestionHelper $helper */
		$helper = $this->_helperSet->get('question');
		$confirmation_question = new ConfirmationQuestion(
			'<question>' . $question . ' [' . ($default ? 'y' : 'n') . ']?</question> ',
			$default
		);

		return $helper->ask($this->_input, $this->_output, $confirmation_question);
	}
public function askConfirmation ( $ question , $ default = true ) { /** @var QuestionHelper $helper */ $ helper = $ this -> _helperSet -> get ( 'question' ) ; $ confirmation_question = new ConfirmationQuestion ( '<question>' . $ question . ' [' . ( $ default ? 'y' : 'n' ) . ']?</question> ' , $ default ) ; return $ helper -> ask ( $ this -> _input , $ this -> _output , $ confirmation_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.
@param boolean      $default  The default answer if the user enters nothing.

@return boolean true if the user has confirmed, false otherwise
Asks a confirmation to the user . The question will be asked until the user answers by nothing yes or no .