nextcloud/apps/files/lib/AdvancedCapabilities.php
Ferdinand Thiessen d8e8703796
chore: add missing Override attribute to app code
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
2026-04-28 21:29:28 +02:00

39 lines
901 B
PHP

<?php
declare(strict_types=1);
/**
* SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
* SPDX-License-Identifier: AGPL-3.0-or-later
*/
namespace OCA\Files;
use OCA\Files\Service\SettingsService;
use OCP\Capabilities\ICapability;
use OCP\Capabilities\IInitialStateExcludedCapability;
/**
* Capabilities not needed for every request.
* This capabilities might be hard to compute or no used by the webui.
*/
class AdvancedCapabilities implements ICapability, IInitialStateExcludedCapability {
public function __construct(
protected SettingsService $service,
) {
}
/**
* Return this classes capabilities
*
* @return array{files: array{'windows_compatible_filenames': bool}}
*/
#[\Override]
public function getCapabilities(): array {
return [
'files' => [
'windows_compatible_filenames' => $this->service->hasFilesWindowsSupport(),
],
];
}
}