registerTranslationProvider(FakeTranslationProvider::class); $context->registerTextProcessingProvider(FakeTextProcessingProvider::class); $context->registerTextProcessingProvider(FakeTextProcessingProviderSync::class); $context->registerTextToImageProvider(FakeText2ImageProvider::class); $context->registerTaskProcessingProvider(FakeTextToTextProvider::class); $context->registerTaskProcessingProvider(FakeTextToTextSummaryProvider::class); $context->registerTaskProcessingProvider(FakeTextToImageProvider::class); $context->registerTaskProcessingProvider(FakeTranslateProvider::class); $context->registerTaskProcessingProvider(FakeTranscribeProvider::class); $context->registerTaskProcessingProvider(FakeContextWriteProvider::class); $context->registerDeclarativeSettings(DeclarativeSettingsForm::class); $context->registerEventListener(DeclarativeSettingsRegisterFormEvent::class, RegisterDeclarativeSettingsListener::class); $context->registerEventListener(DeclarativeSettingsGetValueEvent::class, GetDeclarativeSettingsValueListener::class); $context->registerEventListener(DeclarativeSettingsSetValueEvent::class, SetDeclarativeSettingsValueListener::class); } public function boot(IBootContext $context): void { $server = $context->getServerContainer(); $config = $server->getConfig(); if ($config->getAppValue(self::APP_ID, 'enable_alt_user_backend', 'no') === 'yes') { $userManager = $server->getUserManager(); // replace all user backends with this one $userManager->clearBackends(); $userManager->registerBackend($context->getAppContainer()->get(AlternativeHomeUserBackend::class)); } } }