App\Commands\AppController::action PHP Method

action() protected method

protected action ( string $command, $params = [] )
$command string
    protected function action($command, $params = [])
    {
        echo "\nRunning action '{$command}'...\n";
        \Yii::$app->runAction($command, $params);
    }