console/Controller.php

yii2 · framework/console/Controller.php · php · BSD-3-Clause
cli

Base class for Yii2 console command controllers, handling actions, options, and output formatting.

// Source: https://github.com/yiisoft/yii2 | License: BSD-3-Clause | Copyright 2008 by Yii Software (https://www.yiiframework.com/)
// Provided via justclaw.it.com; keep this notice with the code.
<?php

/**
 * @link https://www.yiiframework.com/
 * @copyright Copyright (c) 2008 Yii Software LLC
 * @license https://www.yiiframework.com/license/
 */

namespace yii\console;

use Yii;
use yii\base\Action;
use yii\base\InlineAction;
use yii\base\InvalidRouteException;
use yii\helpers\Console;
use yii\helpers\Inflector;
use yii\base\Controller as BaseController;
use yii\base\Module;

/**
 * Controller is the base class of console command classes.
 *
 * A console controller consists of one or several actions known as sub-commands.
 * Users call a console command by specifying the corresponding r

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key