예제 #1
0
 /**
  * @param string $text
  * @param bool $highlight
  */
 public function showMessage($text, $highlight = false)
 {
     if ($this->controller instanceof \yii\console\Controller) {
         $this->controller->stdout("{$text}\n", $highlight ? Console::FG_GREEN : null);
     } else {
         echo "{$text}\n";
     }
 }