public function confirmTaskWithUser($task, $question)
    {
        $question = $question === true ? 'Are you sure you want to run the ['.$task.'] task?' : (string) $question;

        $question = '<comment>'.$question.' [y/N]:</comment> ';

        $question = new ConfirmationQuestion($question, false);

        return $this->getHelperSet()->get('question')->ask($this->input, $this->output, $question);
    }
public function confirmTaskWithUser($task, $question)
    {
        $question = $question === true ? 'Are you sure you want to run the ['.$task.'] task?' : (string) $question;

        $question = '<comment>'.$question.' [y/N]:</comment> ';

        $question = new ConfirmationQuestion($question, false);

        return $this->getHelperSet()->get('question')->ask($this->input, $this->output, $question);
    }
public function confirmTaskWithUser ( $ task , $ question ) { $ question = $ question === true ? 'Are you sure you want to run the [' . $ task . '] task?' : ( string ) $ question ; $ question = '<comment>' . $ question . ' [y/N]:</comment> ' ; $ question = new ConfirmationQuestion ( $ question , false ) ; return $ this -> getHelperSet ( ) -> get ( 'question' ) -> ask ( $ this -> input , $ this -> output , $ question ) ; }
Confirm the operation with the user.

@param  string  $task
@param  string  $question
@return bool
Confirm the operation with the user .