mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 09:13:19 -04:00
Register missing DAV app calendar provider
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
This commit is contained in:
parent
df4e6bab69
commit
b193f854d1
2 changed files with 5 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue