diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2016-02-26 18:59:53 +0300 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2016-02-29 18:50:33 +0300 |
commit | 7189c72c33a03d57473f7e3443193d07bece7c15 (patch) | |
tree | 8b61c06e4006f2426037e92d1d65008d6976022c /apps/federation/appinfo | |
parent | eccd7cf6548e1ea639aea48cbf7e52e95dc98c11 (diff) |
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.php | 13 |
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() { |