Пример #1
0
 public function askConfirmation($text, InputInterface $input = null)
 {
     if ($this->dialogHelper instanceof QuestionHelper) {
         if (!$input) {
             throw new \InvalidArgumentException('With symfony 3, the input stream may not be null');
         }
         return $this->dialogHelper->ask($input, $this, new ConfirmationQuestion($text));
     }
     if ($this->dialogHelper instanceof DialogHelper) {
         return $this->dialogHelper->askConfirmation($this, $text);
     }
     throw new \RuntimeException("Invalid dialogHelper");
 }