Class yii\shell\Bootstrap

Inheritanceyii\shell\Bootstrap
Implementsyii\base\BootstrapInterface
Available since extension's version2.0
Source Code https://github.com/yiisoft/yii2-shell/blob/master/Bootstrap.php

Class Bootstrap

Public Methods

Hide inherited methods

Method Description Defined By
bootstrap() yii\shell\Bootstrap

Method Details

Hide inherited methods

bootstrap() public method

public void bootstrap ( $app )
$app

                public function bootstrap($app)
{
    if ($app instanceof \yii\console\Application) {
        $app->controllerMap['shell'] = ArrayHelper::merge([
            'class' => 'yii\shell\ShellController',
            'shellConfig' => [
                'updateCheck' => 'never',
            ],
        ], isset($app->controllerMap['shell']) ? $app->controllerMap['shell'] : []);
    }
}