Skip to content

Commit

Permalink
Merge pull request #29480 from nextcloud/fix/missing-dav-calendar-pro…
Browse files Browse the repository at this point in the history
…vider

Register missing DAV app calendar provider
  • Loading branch information
ChristophWurst authored Oct 28, 2021
2 parents e1273da + b193f85 commit b6a4e02
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions apps/dav/lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
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;
Expand Down Expand Up @@ -161,6 +162,8 @@ public function register(IRegistrationContext $context): void {
$context->registerEventListener(CardUpdatedEvent::class, CardListener::class);

$context->registerNotifierService(Notifier::class);

$context->registerCalendarProvider(CalendarProvider::class);
}

public function boot(IBootContext $context): void {
Expand Down
3 changes: 2 additions & 1 deletion lib/public/AppFramework/Bootstrap/IRegistrationContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

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;
Expand Down Expand Up @@ -248,7 +249,7 @@ public function registerPreviewProvider(string $previewProviderClass, string $mi
* 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;
Expand Down

0 comments on commit b6a4e02

Please sign in to comment.