From 2496f83463312561c72c75b7e496a999365df764 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Fri, 21 May 2021 14:22:50 +0200 Subject: Add activities for addressbook management Signed-off-by: Joas Schilling --- apps/dav/lib/AppInfo/Application.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'apps/dav/lib/AppInfo') diff --git a/apps/dav/lib/AppInfo/Application.php b/apps/dav/lib/AppInfo/Application.php index 8c1e4f77a12..16615f59b05 100644 --- a/apps/dav/lib/AppInfo/Application.php +++ b/apps/dav/lib/AppInfo/Application.php @@ -51,6 +51,10 @@ use OCA\DAV\CardDAV\CardDavBackend; use OCA\DAV\CardDAV\ContactsManager; use OCA\DAV\CardDAV\PhotoCache; use OCA\DAV\CardDAV\SyncService; +use OCA\DAV\Events\AddressBookCreatedEvent; +use OCA\DAV\Events\AddressBookDeletedEvent; +use OCA\DAV\Events\AddressBookShareUpdatedEvent; +use OCA\DAV\Events\AddressBookUpdatedEvent; use OCA\DAV\Events\CalendarCreatedEvent; use OCA\DAV\Events\CalendarDeletedEvent; use OCA\DAV\Events\CalendarObjectCreatedEvent; @@ -60,6 +64,7 @@ use OCA\DAV\Events\CalendarShareUpdatedEvent; use OCA\DAV\Events\CalendarUpdatedEvent; use OCA\DAV\HookManager; use OCA\DAV\Listener\ActivityUpdaterListener; +use OCA\DAV\Listener\AddressbookListener; use OCA\DAV\Listener\CalendarContactInteractionListener; use OCA\DAV\Listener\CalendarDeletionDefaultUpdaterListener; use OCA\DAV\Listener\CalendarObjectReminderUpdaterListener; @@ -131,6 +136,12 @@ class Application extends App implements IBootstrap { $context->registerEventListener(CalendarObjectDeletedEvent::class, CalendarObjectReminderUpdaterListener::class); $context->registerEventListener(CalendarShareUpdatedEvent::class, CalendarContactInteractionListener::class); + + $context->registerEventListener(AddressBookCreatedEvent::class, AddressbookListener::class); + $context->registerEventListener(AddressBookDeletedEvent::class, AddressbookListener::class); + $context->registerEventListener(AddressBookUpdatedEvent::class, AddressbookListener::class); + $context->registerEventListener(AddressBookShareUpdatedEvent::class, AddressbookListener::class); + $context->registerNotifierService(Notifier::class); } -- cgit v1.2.3