Class dmstr\console\controllers\BaseAppController
Inheritance | dmstr\console\controllers\BaseAppController » yii\console\Controller |
---|---|
Subclasses | app\commands\AppController |
Base class for application management controller
Public Properties
Protected Properties
Property | Type | Description | Defined By |
---|---|---|---|
$_composerExecutable | dmstr\console\controllers\BaseAppController |
Public Methods
Method | Description | Defined 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 |
Protected Methods
Method | Description | Defined By |
---|---|---|
action() | dmstr\console\controllers\BaseAppController | |
composer() | dmstr\console\controllers\BaseAppController | |
execute() | dmstr\console\controllers\BaseAppController |
Property Details
Method Details
protected void action ( $command, $params = [] ) | ||
$command | ||
$params |
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 |
Displays application version from git describe and writes it to version
public void actionVersion ( $alias = '@app/version' ) | ||
$alias |
protected void composer ( $command ) | ||
$command |
protected void execute ( $command ) | ||
$command |
public void init ( ) |