registerEventListener(RoomCreatedEvent::class, RoomListener::class); $context->registerEventListener(RoomDeletedEvent::class, RoomListener::class); $context->registerEventListener(RoomShareCreatedEvent::class, RoomShareListener::class); $context->registerEventListener(RoomShareDeletedEvent::class, RoomShareListener::class); $context->registerEventListener(MeetingStartedEvent::class, MeetingListener::class); $context->registerEventListener(MeetingEndedEvent::class, MeetingListener::class); $context->registerEventListener(RecordingReadyEvent::class, MeetingListener::class); $context->registerEventListener(UserDeletedEvent::class, UserDeletedListener::class); $context->registerSearchProvider(Provider::class); $context->registerMiddleware(JoinMiddleware::class); $context->registerMiddleware(HookMiddleware::class); } public function boot(IBootContext $context): void { $context->injectFn([$this, 'registerAdminPage']); Util::addScript('bbb', 'filelist'); } public function registerAdminPage(ISettingsManager $settingsManager, INavigationManager $navigationManager, IURLGenerator $urlGenerator, IConfig $config):void { if ($config->getAppValue(self::ID, 'app.navigation') === 'true') { $this->registerAsNavigationEntry($navigationManager, $urlGenerator, $config); } else { $this->registerAsPersonalSetting($settingsManager); } } private function registerAsPersonalSetting(ISettingsManager $settingsManager): void { $settingsManager->registerSetting(ISettingsManager::KEY_PERSONAL_SETTINGS, \OCA\BigBlueButton\Settings\Personal::class); } private function registerAsNavigationEntry(INavigationManager $navigationManager, IURLGenerator $urlGenerator, IConfig $config): void { $name = $config->getAppValue(self::ID, 'app.navigation.name', 'BBB'); $navigationManager->add(function () use ($urlGenerator, $name) { return [ 'id' => self::ID, 'order' => 80, 'href' => $urlGenerator->linkToRoute('bbb.page.index'), 'icon' => $urlGenerator->imagePath('bbb', 'app.svg'), 'name' => $name, ]; }); } }