summaryrefslogtreecommitdiffstats
path: root/apps/federation/appinfo
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2016-02-26 16:59:53 +0100
committerBjoern Schiessle <schiessle@owncloud.com>2016-02-29 16:50:33 +0100
commit7189c72c33a03d57473f7e3443193d07bece7c15 (patch)
tree8b61c06e4006f2426037e92d1d65008d6976022c /apps/federation/appinfo
parenteccd7cf6548e1ea639aea48cbf7e52e95dc98c11 (diff)
downloadnextcloud-server-7189c72c33a03d57473f7e3443193d07bece7c15.tar.gz
nextcloud-server-7189c72c33a03d57473f7e3443193d07bece7c15.zip
remove remote address book if the admin removes the server from the trusted servers list
Diffstat (limited to 'apps/federation/appinfo')
-rw-r--r--apps/federation/appinfo/application.php13
1 files changed, 8 insertions, 5 deletions
diff --git a/apps/federation/appinfo/application.php b/apps/federation/appinfo/application.php
index 0d033f44982..93897d211c3 100644
--- a/apps/federation/appinfo/application.php
+++ b/apps/federation/appinfo/application.php
@@ -75,13 +75,15 @@ class Application extends \OCP\AppFramework\App {
});
$container->registerService('TrustedServers', function(IAppContainer $c) {
+ $server = $c->getServer();
return new TrustedServers(
$c->query('DbHandler'),
- \OC::$server->getHTTPClientService(),
- \OC::$server->getLogger(),
- \OC::$server->getJobList(),
- \OC::$server->getSecureRandom(),
- \OC::$server->getConfig()
+ $server->getHTTPClientService(),
+ $server->getLogger(),
+ $server->getJobList(),
+ $server->getSecureRandom(),
+ $server->getConfig(),
+ $server->getEventDispatcher()
);
});
@@ -94,6 +96,7 @@ class Application extends \OCP\AppFramework\App {
$c->query('TrustedServers')
);
});
+
}
private function registerMiddleware() {