1
0
Fork 0
nc_ext_dav_push/lib/AppInfo/Application.php

37 lines
1.3 KiB
PHP
Raw Normal View History

<?php
// SPDX-FileCopyrightText: bitfire web engineering GmbH <info@bitfire.at>
// SPDX-License-Identifier: AGPL-3.0-or-later
namespace OCA\DavPush\AppInfo;
2024-06-12 03:05:59 +02:00
use OCA\DavPush\Listener\SabrePluginAddListener;
use OCA\DavPush\Listener\CalendarListener;
use OCP\AppFramework\App;
use OCP\AppFramework\Bootstrap\IBootstrap;
use OCP\AppFramework\Bootstrap\IRegistrationContext;
use OCP\AppFramework\Bootstrap\IBootContext;
use OCA\DAV\Events\SabrePluginAddEvent;
2024-06-12 03:05:59 +02:00
use OCA\DAV\Events\CalendarObjectCreatedEvent;
use OCA\DAV\Events\CalendarObjectDeletedEvent;
use OCA\DAV\Events\CalendarObjectUpdatedEvent;
class Application extends App implements IBootstrap {
public const APP_ID = 'dav_push';
public function __construct() {
parent::__construct(self::APP_ID);
}
2024-04-05 20:30:30 +02:00
public function register(IRegistrationContext $context): void {
$context->registerEventListener(SabrePluginAddEvent::class, SabrePluginAddListener::class);
2024-06-12 03:05:59 +02:00
$context->registerEventListener(CalendarObjectCreatedEvent::class, CalendarListener::class);
$context->registerEventListener(CalendarObjectDeletedEvent::class, CalendarListener::class);
$context->registerEventListener(CalendarObjectUpdatedEvent::class, CalendarListener::class);
2024-04-05 20:30:30 +02:00
}
2024-04-05 20:30:30 +02:00
public function boot(IBootContext $context): void {
}
}