diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2016-11-11 14:36:17 +0100 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2016-11-21 11:29:57 +0100 |
commit | 8f33d9d1c07c164b18be9d36e9e9f79b5bdfa8be (patch) | |
tree | 2f6d2e5b58666a2cddc19ff2aed5cf7fa32cf36d /apps/dav/lib/AppInfo | |
parent | 987995ac920a2d1e1251df80a482e3aef97c06f6 (diff) | |
download | nextcloud-server-8f33d9d1c07c164b18be9d36e9e9f79b5bdfa8be.tar.gz nextcloud-server-8f33d9d1c07c164b18be9d36e9e9f79b5bdfa8be.zip |
update system address book if the user change the personal settings
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps/dav/lib/AppInfo')
-rw-r--r-- | apps/dav/lib/AppInfo/Application.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/dav/lib/AppInfo/Application.php b/apps/dav/lib/AppInfo/Application.php index 844e0780ffb..80d2946ab07 100644 --- a/apps/dav/lib/AppInfo/Application.php +++ b/apps/dav/lib/AppInfo/Application.php @@ -101,6 +101,12 @@ class Application extends App { } }); + $dispatcher->addListener('OC\AccountManager::userUpdated', function(GenericEvent $event) { + $user = $event->getSubject(); + $syncService = $this->getContainer()->query(SyncService::class); + $syncService->updateUser($user); + }); + $dispatcher->addListener('\OCA\DAV\CalDAV\CalDavBackend::createCalendar', function(GenericEvent $event) { /** @var Backend $backend */ $backend = $this->getContainer()->query(Backend::class); @@ -136,6 +142,10 @@ class Application extends App { ); }); + $dispatcher->addListener('OC\AccountManager::userUpdated', function(GenericEvent $event) { + error_log("hello"); + }); + $listener = function(GenericEvent $event, $eventName) { /** @var Backend $backend */ $backend = $this->getContainer()->query(Backend::class); |