public function printMessage($text, $fg = Console::FG_YELLOW, $bg = Console::BG_BLACK)
    {
        if (Yii::$app instanceof \yii\console\Application && Yii::$app->controller->interactive) {
            Yii::$app->controller->stdout($text . PHP_EOL, $fg, $bg);
        }
    }
public function printMessage($text, $fg = Console::FG_YELLOW, $bg = Console::BG_BLACK)
    {
        if (Yii::$app instanceof \yii\console\Application && Yii::$app->controller->interactive) {
            Yii::$app->controller->stdout($text . PHP_EOL, $fg, $bg);
        }
    }
public function printMessage ( $ text , $ fg = Console :: FG_YELLOW , $ bg = Console :: BG_BLACK ) { if ( Yii :: $ app instanceof \ yii \ console \ Application && Yii :: $ app -> controller -> interactive ) { Yii :: $ app -> controller -> stdout ( $ text . PHP_EOL , $ fg , $ bg ) ; } }
Show error in console mode

@param string $text
@param int $fg foreground
@param int $bg background
Show error in console mode