mirror of
https://github.com/nextcloud/server.git
synced 2026-11-09 02:14:48 +01:00
37 lines
948 B
PHP
37 lines
948 B
PHP
<?php
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-or-later
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace OCA\Sharing\AppInfo;
|
|
|
|
use OCA\Sharing\Capabilities;
|
|
use OCA\Sharing\Middleware\ShareApiEnabledMiddleware;
|
|
use OCP\AppFramework\App;
|
|
use OCP\AppFramework\Bootstrap\IBootContext;
|
|
use OCP\AppFramework\Bootstrap\IBootstrap;
|
|
use OCP\AppFramework\Bootstrap\IRegistrationContext;
|
|
|
|
final class Application extends App implements IBootstrap {
|
|
public const string APP_ID = 'sharing';
|
|
|
|
public function __construct(array $urlParams = []) {
|
|
parent::__construct(self::APP_ID, $urlParams);
|
|
}
|
|
|
|
#[\Override]
|
|
public function register(IRegistrationContext $context): void {
|
|
$context->registerCapability(Capabilities::class);
|
|
$context->registerMiddleware(ShareApiEnabledMiddleware::class);
|
|
}
|
|
|
|
#[\Override]
|
|
public function boot(IBootContext $context): void {
|
|
// Nothing to do
|
|
}
|
|
}
|