yii\console\controllers\CacheController::confirmFlush PHP Method

confirmFlush() private method

Prompts user with confirmation if caches should be flushed.
private confirmFlush ( array $cachesNames ) : boolean
$cachesNames array
return boolean
    private function confirmFlush($cachesNames)
    {
        $this->stdout("The following cache components will be flushed:\n\n", Console::FG_YELLOW);
        foreach ($cachesNames as $name) {
            $this->stdout("\t* {$name} \n", Console::FG_GREEN);
        }
        return $this->confirm("\nFlush above cache components?");
    }