aboutsummaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/lib/AppInfo/Application.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/federatedfilesharing/lib/AppInfo/Application.php')
-rw-r--r--apps/federatedfilesharing/lib/AppInfo/Application.php18
1 files changed, 16 insertions, 2 deletions
diff --git a/apps/federatedfilesharing/lib/AppInfo/Application.php b/apps/federatedfilesharing/lib/AppInfo/Application.php
index 23f521a51c4..655c01cf85d 100644
--- a/apps/federatedfilesharing/lib/AppInfo/Application.php
+++ b/apps/federatedfilesharing/lib/AppInfo/Application.php
@@ -33,6 +33,7 @@ use OCA\FederatedFileSharing\Controller\RequestHandlerController;
use OCA\FederatedFileSharing\FederatedShareProvider;
use OCA\FederatedFileSharing\Notifications;
use OCA\FederatedFileSharing\OCM\CloudFederationProvider;
+use OCA\FederatedFileSharing\OCM\CloudFederationProviderFiles;
use OCP\AppFramework\App;
use OCP\GlobalScale\IConfig;
@@ -51,7 +52,18 @@ class Application extends App {
$cloudFederationManager->addCloudFederationProvider('file',
'Federated Files Sharing',
function() use ($container) {
- return new CloudFederationProvider('file');
+ $server = $container->getServer();
+ return new CloudFederationProviderFiles(
+ $server->getAppManager(),
+ $server->query(FederatedShareProvider::class),
+ $server->query(AddressHandler::class),
+ $server->getLogger(),
+ $server->getUserManager(),
+ $server->getCloudIdManager(),
+ $server->getActivityManager(),
+ $server->getNotificationManager(),
+ $server->getURLGenerator()
+ );
});
$container->registerService('RequestHandlerController', function(SimpleContainer $c) use ($server) {
@@ -76,7 +88,9 @@ class Application extends App {
$addressHandler,
$server->getUserManager(),
$server->getCloudIdManager(),
- $server->getLogger()
+ $server->getLogger(),
+ $server->getCloudFederationFactory(),
+ $server->getCloudFederationProviderManager()
);
});
}