aboutsummaryrefslogtreecommitdiffstats
path: root/apps/federatedfilesharing/lib/AppInfo
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2018-04-30 11:49:24 +0200
committerBjoern Schiessle <bjoern@schiessle.org>2018-07-02 11:29:27 +0200
commit21e64ec7f41dcf5424c3357f7ce07b22a817a16e (patch)
tree70216c0c182d43a329bfb52ed1f39652bbc930c2 /apps/federatedfilesharing/lib/AppInfo
parent5cfe20675dfa1f895af47b4a8c93cf479d53b200 (diff)
downloadnextcloud-server-21e64ec7f41dcf5424c3357f7ce07b22a817a16e.tar.gz
nextcloud-server-21e64ec7f41dcf5424c3357f7ce07b22a817a16e.zip
implement receiving of federated shares
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps/federatedfilesharing/lib/AppInfo')
-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()
);
});
}