Class dmstr\console\controllers\BaseAppController

Inheritancedmstr\console\controllers\BaseAppController » yii\console\Controller
Subclassesapp\commands\AppController

Base class for application management controller

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$_composerExecutable dmstr\console\controllers\BaseAppController

Public Methods

Hide inherited methods

MethodDescriptionDefined By
actionCreateMysqlDb() Create MySQL database from ENV vars and grant permissions dmstr\console\controllers\BaseAppController
actionVersion() Displays application version from git describe and writes it to version dmstr\console\controllers\BaseAppController
init() dmstr\console\controllers\BaseAppController

Property Details

$_composerExecutable protected property
protected $_composerExecutable null
$composerExecutables public property
public $composerExecutables = ['composer.phar''composer']
$defaultAction public property
public $defaultAction 'version'
$mysqlPreSetupPause public property
$mysqlRetryMaxCount public property
public $mysqlRetryMaxCount 20
$mysqlRetryTimeout public property
public $mysqlRetryTimeout 2

Method Details

action() protected method

protected void action ( $command, $params = [] )
$command
$params
actionCreateMysqlDb() public method

Create MySQL database from ENV vars and grant permissions

Note: skips creation, if root password is not set

public void actionCreateMysqlDb ( $db null )
$db

Database name

actionVersion() public method

Displays application version from git describe and writes it to version

public void actionVersion ( $alias '@app/version' )
$alias
composer() protected method

protected void composer ( $command )
$command
execute() protected method

protected void execute ( $command )
$command
init() public method

public void init ( )