diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2016-11-17 17:00:25 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-11-21 11:29:59 +0100 |
commit | 069023416c646ab8340a8521c4db5b453e57481d (patch) | |
tree | b9dfd88980a534d35b7d87442d867d3337e17da1 /apps/lookup_server_connector/appinfo | |
parent | b23a4ca96b018b31d7586883075f306f0492c7e4 (diff) | |
download | nextcloud-server-069023416c646ab8340a8521c4db5b453e57481d.tar.gz nextcloud-server-069023416c646ab8340a8521c4db5b453e57481d.zip |
lookup server connector
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps/lookup_server_connector/appinfo')
-rw-r--r-- | apps/lookup_server_connector/appinfo/app.php | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/apps/lookup_server_connector/appinfo/app.php b/apps/lookup_server_connector/appinfo/app.php index e74f101853f..dc076b78828 100644 --- a/apps/lookup_server_connector/appinfo/app.php +++ b/apps/lookup_server_connector/appinfo/app.php @@ -21,8 +21,13 @@ $dispatcher = \OC::$server->getEventDispatcher(); -$dispatcher->addListener('OC\AccountManager::userUpdated', function(GenericEvent $event) { +$dispatcher->addListener('OC\AccountManager::userUpdated', function(\Symfony\Component\EventDispatcher\GenericEvent $event) { $user = $event->getSubject(); - $updateLookupServer = new \OCA\LookupServerConnector\UpdateLookupServer(); + $updateLookupServer = new \OCA\LookupServerConnector\UpdateLookupServer( + new \OC\Accounts\AccountManager(\OC::$server->getDatabaseConnection(), \OC::$server->getEventDispatcher()), + \OC::$server->getConfig(), + \OC::$server->getSecureRandom(), + \OC::$server->getHTTPClientService() + ); $updateLookupServer->userUpdated($user); }); |