Class CConsoleCommandRunner
CConsoleCommandRunner manages commands and executes the requested command.
- CComponent
- CConsoleCommandRunner
Package: system\console
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/console/CConsoleCommandRunner.php
Copyright: 2008-2013 Yii Software LLC
License: http://www.yiiframework.com/license/
Author: Qiang Xue <qiang.xue@gmail.com>
Since: 1.0
Located at x2engine/framework/console/CConsoleCommandRunner.php
public
integer|null
|
|
public
string
|
|
public
|
|
public
|
|
public
array
|
|
public
|
#
addCommands( string $path )
Adds commands from the specified command path. If a command already exists, the new one will be ignored. |
public
|
public
array
|
$commands | array() |
#
list of all available commands (command name=>command configuration). Each command configuration can be either a string or an array. If the former, the string should be the class name or YiiBase::getPathOfAlias class path alias of the command. If the latter, the array must contain a 'class' element which specifies the command's class name or YiiBase::getPathOfAlias class path alias. The rest name-value pairs in the array are used to initialize the corresponding command properties. For example, array( 'email'=>array( 'class'=>'path.to.Mailer', 'interval'=>3600, ), 'log'=>'path.to.LoggerCommand', ) |
public
string
|
$scriptName |
#
The entry script name. |
public
|
$command |
#
The currently active command. |