diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-02-02 10:08:44 +0100 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2021-02-03 12:16:57 +0100 |
commit | 0da1999a3b2d33acc40fb1815b9b22f728cb2cc0 (patch) | |
tree | 21d8cd89b4fa4961e1e167bf0e0ade2a1719938e /apps/dav/lib/AppInfo/Application.php | |
parent | 3e35d2c394f65d327ac90dd83bacecd0b6a035bf (diff) | |
download | nextcloud-server-0da1999a3b2d33acc40fb1815b9b22f728cb2cc0.tar.gz nextcloud-server-0da1999a3b2d33acc40fb1815b9b22f728cb2cc0.zip |
Emit an interaction event for calendar share recipients
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'apps/dav/lib/AppInfo/Application.php')
-rw-r--r-- | apps/dav/lib/AppInfo/Application.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/dav/lib/AppInfo/Application.php b/apps/dav/lib/AppInfo/Application.php index 1bad3cb1eba..09081403140 100644 --- a/apps/dav/lib/AppInfo/Application.php +++ b/apps/dav/lib/AppInfo/Application.php @@ -53,7 +53,9 @@ use OCA\DAV\CardDAV\CardDavBackend; use OCA\DAV\CardDAV\ContactsManager; use OCA\DAV\CardDAV\PhotoCache; use OCA\DAV\CardDAV\SyncService; +use OCA\DAV\Events\CalendarShareUpdatedEvent; use OCA\DAV\HookManager; +use OCA\DAV\Listener\CalendarContactInteractionListener; use OCA\DAV\Search\ContactsSearchProvider; use OCA\DAV\Search\EventsSearchProvider; use OCA\DAV\Search\TasksSearchProvider; @@ -106,6 +108,11 @@ class Application extends App implements IBootstrap { $context->registerSearchProvider(ContactsSearchProvider::class); $context->registerSearchProvider(EventsSearchProvider::class); $context->registerSearchProvider(TasksSearchProvider::class); + + /** + * Register event listeners + */ + $context->registerEventListener(CalendarShareUpdatedEvent::class, CalendarContactInteractionListener::class); } public function boot(IBootContext $context): void { |