public function bootstrap($app) { if ($app instanceof \yii\console\Application) { $app->controllerMap['shell'] = 'yii\\shell\\ShellController'; } }