2024-04-05 20:26:15 +02:00
|
|
|
<?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;
|
|
|
|
|
2024-04-05 20:26:15 +02:00
|
|
|
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;
|
2024-04-05 20:26:15 +02:00
|
|
|
|
|
|
|
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:26:15 +02:00
|
|
|
|
2024-04-05 20:30:30 +02:00
|
|
|
public function boot(IBootContext $context): void {
|
|
|
|
}
|
2024-04-05 20:26:15 +02:00
|
|
|
}
|