getAppContainer(); /** @var IAppManager $appManager */ $appManager = $appContainer->get(IAppManager::class); /** @var IInitialState $initialState */ $initialState = $appContainer->get(IInitialState::class); $gpoddersync = $appManager->isEnabledForUser(self::GPODDERSYNC_ID); if (!$gpoddersync) { try { $appManager->enableApp(self::GPODDERSYNC_ID); } catch (AppPathNotFoundException $e) { } } $gpoddersync = $appManager->isEnabledForUser(self::GPODDERSYNC_ID); $initialState->provideInitialState('gpodder', $gpoddersync); } public function register(IRegistrationContext $context): void { $context->registerSearchProvider(SearchProvider::class); } }