Beispiel #1
0
 /**
  * @param string $text
  * @param bool $default
  * @return bool
  */
 public function confirm($text, $default = false)
 {
     if ($this->controller instanceof \yii\console\Controller) {
         return $this->controller->confirm($text, $default);
     } else {
         return false;
     }
 }