PHP Class luya\console\Application

Author: nadar
Inheritance: extends yii\console\Application, use trait luya\traits\ApplicationTrait
Exibir arquivo Open project: luyadev/luya

Public Properties

Property Type Description
$mute Mute the Applications ouput, this is used to make application cli tests with no output. The luya\console\Controller output/print methods are listening to this property.

Public Methods

Method Description
coreCommands ( ) Provides an array with all LUYA core commands.
coreComponents ( )
runAction ( $route, $params = [] ) In addition to the default behavior of runAction, the console command will strip the first element of the route and threat it as a module changed the controller namespace to run the commands.

Method Details

coreCommands() public method

Instead of overriding the core command application and merged the value we directly copied them.
See also: yii\console\Application::coreCommands()
public coreCommands ( )

coreComponents() public method

public coreComponents ( )

runAction() public method

./vendor/bin/luya // Will run all controllers located in the commands folder of a module. {@inheritDoc}
See also: yii\console\Application::runAction()
Since: 1.0.0-beta6
public runAction ( $route, $params = [] )

Property Details

$mute public_oe property

Mute the Applications ouput, this is used to make application cli tests with no output. The luya\console\Controller output/print methods are listening to this property.
public $mute