blob: 22f990f0cf822b52956cdbc342d1515fe1162f6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
<?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}}
*/
public function getCapabilities(): array {
return [
'files' => [
'windows_compatible_filenames' => $this->service->hasFilesWindowsSupport(),
],
];
}
}
|