]> source.dussan.org Git - nextcloud-server.git/commitdiff
Register missing DAV app calendar provider 29480/head
authorChristoph Wurst <christoph@winzerhof-wurst.at>
Thu, 28 Oct 2021 16:33:13 +0000 (18:33 +0200)
committerChristoph Wurst <christoph@winzerhof-wurst.at>
Thu, 28 Oct 2021 16:33:13 +0000 (18:33 +0200)
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
apps/dav/lib/AppInfo/Application.php
lib/public/AppFramework/Bootstrap/IRegistrationContext.php

index 7e26912120ad9b617658cb15447dd3a22c87328c..a2fd645ab8a003685d0e3eee37a345488621559d 100644 (file)
@@ -38,6 +38,7 @@ use OCA\DAV\CalDAV\Activity\Backend;
 use OCA\DAV\CalDAV\BirthdayService;
 use OCA\DAV\CalDAV\CalDavBackend;
 use OCA\DAV\CalDAV\CalendarManager;
+use OCA\DAV\CalDAV\CalendarProvider;
 use OCA\DAV\CalDAV\Reminder\NotificationProvider\AudioProvider;
 use OCA\DAV\CalDAV\Reminder\NotificationProvider\EmailProvider;
 use OCA\DAV\CalDAV\Reminder\NotificationProvider\PushProvider;
@@ -161,6 +162,8 @@ class Application extends App implements IBootstrap {
                $context->registerEventListener(CardUpdatedEvent::class, CardListener::class);
 
                $context->registerNotifierService(Notifier::class);
+
+               $context->registerCalendarProvider(CalendarProvider::class);
        }
 
        public function boot(IBootContext $context): void {
index 3e5aef06e8b0bab72fc4135e9eed4b434c0e8e6f..4e895b73b3d1ce53bee7de316163cd56ac7990f2 100644 (file)
@@ -31,6 +31,7 @@ namespace OCP\AppFramework\Bootstrap;
 
 use OCP\AppFramework\IAppContainer;
 use OCP\Authentication\TwoFactorAuth\IProvider;
+use OCP\Calendar\ICalendarProvider;
 use OCP\Capabilities\ICapability;
 use OCP\EventDispatcher\IEventDispatcher;
 use OCP\Files\Template\ICustomTemplateProvider;
@@ -248,7 +249,7 @@ interface IRegistrationContext {
         * Register a calendar provider
         *
         * @param string $class
-        * @psalm-param class-string<IProvider> $class
+        * @psalm-param class-string<ICalendarProvider> $class
         * @since 23.0.0
         */
        public function registerCalendarProvider(string $class): void;