From 21e64ec7f41dcf5424c3357f7ce07b22a817a16e Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Mon, 30 Apr 2018 11:49:24 +0200 Subject: implement receiving of federated shares Signed-off-by: Bjoern Schiessle --- apps/federatedfilesharing/lib/AppInfo/Application.php | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'apps/federatedfilesharing/lib/AppInfo') 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() ); }); } -- cgit v1.2.3