1
0
Fork 0
nc_ext_dav_push/lib/AppInfo/Application.php
2024-04-05 20:26:15 +02:00

30 lines
No EOL
821 B
PHP

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