From 449011dae7ea0ec7eb8d6c78e89709982020e709 Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Fri, 10 Mar 2017 15:37:21 +0100 Subject: remove discovery manager in favour of the OCSDiscoveryService Signed-off-by: Bjoern Schiessle --- apps/federatedfilesharing/lib/AppInfo/Application.php | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'apps/federatedfilesharing/lib/AppInfo/Application.php') diff --git a/apps/federatedfilesharing/lib/AppInfo/Application.php b/apps/federatedfilesharing/lib/AppInfo/Application.php index 3e97edeada0..daeb049a31e 100644 --- a/apps/federatedfilesharing/lib/AppInfo/Application.php +++ b/apps/federatedfilesharing/lib/AppInfo/Application.php @@ -51,10 +51,7 @@ class Application extends App { $notification = new Notifications( $addressHandler, $server->getHTTPClientService(), - new \OCA\FederatedFileSharing\DiscoveryManager( - $server->getMemCacheFactory(), - $server->getHTTPClientService() - ), + $server->getOCSDiscoveryService(), \OC::$server->getJobList() ); return new RequestHandlerController( @@ -99,14 +96,10 @@ class Application extends App { \OC::$server->getL10N('federatedfilesharing'), \OC::$server->getCloudIdManager() ); - $discoveryManager = new \OCA\FederatedFileSharing\DiscoveryManager( - \OC::$server->getMemCacheFactory(), - \OC::$server->getHTTPClientService() - ); $notifications = new \OCA\FederatedFileSharing\Notifications( $addressHandler, \OC::$server->getHTTPClientService(), - $discoveryManager, + \OC::$server->getOCSDiscoveryService(), \OC::$server->getJobList() ); $tokenHandler = new \OCA\FederatedFileSharing\TokenHandler( -- cgit v1.2.3