diff options
author | provokateurin <kate@provokateurin.de> | 2024-04-08 20:08:44 +0200 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2024-04-08 19:47:50 +0000 |
commit | d10316ac7042d8251dffd54bcedeb45915795c35 (patch) | |
tree | 3e2ef0bb2a4a3b621d1115fba944ba90a1df1e71 /lib | |
parent | 0d63b6025a3c2b590fbd9ea5767dcc2cd1370224 (diff) | |
download | nextcloud-server-d10316ac7042d8251dffd54bcedeb45915795c35.tar.gz nextcloud-server-d10316ac7042d8251dffd54bcedeb45915795c35.zip |
feat(OCS): Annotate capabilities
Signed-off-by: provokateurin <kate@provokateurin.de>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/OCS/CoreCapabilities.php | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/lib/private/OCS/CoreCapabilities.php b/lib/private/OCS/CoreCapabilities.php index 0e9be3460ca..49e88b70ddd 100644 --- a/lib/private/OCS/CoreCapabilities.php +++ b/lib/private/OCS/CoreCapabilities.php @@ -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, ], |