summaryrefslogtreecommitdiffstats
path: root/apps/lookup_server_connector/appinfo
diff options
context:
space:
mode:
Diffstat (limited to 'apps/lookup_server_connector/appinfo')
-rw-r--r--apps/lookup_server_connector/appinfo/app.php9
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);
});