Class yii\shell\Bootstrap

Inheritanceyii\shell\Bootstrap
Implementsyii\base\BootstrapInterface
Available since 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() Bootstrap method to be called during application bootstrap stage. yii\shell\Bootstrap

Method Details

Hide inherited methods

bootstrap() public method

Bootstrap method to be called during application bootstrap stage.

public void bootstrap ( $app )
$app yii\base\Application

The application currently running

                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'] : []);
    }
}