/** * Bootstrap method to be called during application bootstrap stage. * * @param Application $app the application currently running */ public function bootstrap($app) { if ($app instanceof Application) { $app->controllerMap['audit'] = 'bedezign\\yii2\\audit\\commands\\AuditController'; } if ($app->has('i18n')) { $app->i18n->translations['audit'] = ['class' => 'yii\\i18n\\PhpMessageSource', 'sourceLanguage' => 'en', 'basePath' => '@bedezign/yii2/audit/messages']; } }