Skip to content

Commit

Permalink
feat(OCS): Annotate capabilities
Browse files Browse the repository at this point in the history
Signed-off-by: provokateurin <kate@provokateurin.de>
  • Loading branch information
provokateurin authored and backportbot[bot] committed Apr 8, 2024
1 parent 0d63b60 commit d10316a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions lib/private/OCS/CoreCapabilities.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,21 @@ public function __construct(

/**
* 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,
],
Expand Down

0 comments on commit d10316a

Please sign in to comment.