You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nextcloud-server/apps/cloud_federation_api/lib/AppInfo/Application.php

34 lines
892 B

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\CloudFederationAPI\AppInfo;
use OCA\CloudFederationAPI\Listener\ShareDeletedListener;
use OCP\AppFramework\App;
use OCP\AppFramework\Bootstrap\IBootContext;
use OCP\AppFramework\Bootstrap\IBootstrap;
use OCP\AppFramework\Bootstrap\IRegistrationContext;
use OCP\Share\Events\ShareDeletedEvent;
class Application extends App implements IBootstrap {
public const APP_ID = 'cloud_federation_api';
public function __construct() {
parent::__construct(self::APP_ID);
}
#[\Override]
public function register(IRegistrationContext $context): void {
$context->registerEventListener(ShareDeletedEvent::class, ShareDeletedListener::class);
}
#[\Override]
public function boot(IBootContext $context): void {
}
}