feat(OCS): Annotate capabilities

Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
provokateurin 2024-04-08 20:08:44 +02:00 committed by backportbot[bot]
parent 0d63b6025a
commit d10316ac70

View file

@ -42,12 +42,21 @@ class CoreCapabilities implements ICapability {
/**
* Return this classes capabilities
*
* @return array{
* core: array{
* pollinterval: int,
* webdav-root: string,
* reference-api: boolean,
* reference-regex: string,
* },
* }
*/
public function getCapabilities(): array {
return [
'core' => [
'pollinterval' => $this->config->getSystemValue('pollinterval', 60),
'webdav-root' => $this->config->getSystemValue('webdav-root', 'remote.php/webdav'),
'pollinterval' => $this->config->getSystemValueInt('pollinterval', 60),
'webdav-root' => $this->config->getSystemValueString('webdav-root', 'remote.php/webdav'),
'reference-api' => true,
'reference-regex' => IURLGenerator::URL_REGEX_NO_MODIFIERS,
],