registerEventListener(LoadAdditionalScriptsEvent::class, LoadAdditionalScriptsListener::class); $context->registerNotifierService(Notifier::class); } public function boot(IBootContext $context): void { $context->injectFn(Closure::fromCallable([$this, 'registerCloudFederationProvider'])); } private function registerCloudFederationProvider(ICloudFederationProviderManager $manager, IAppContainer $appContainer): void { $manager->addCloudFederationProvider('file', 'Federated Files Sharing', function () use ($appContainer): CloudFederationProviderFiles { return $appContainer->get(CloudFederationProviderFiles::class); }); } }