mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
feat(OCS): Annotate capabilities
Signed-off-by: provokateurin <kate@provokateurin.de>
This commit is contained in:
parent
25847bdb69
commit
8aa294567d
1 changed files with 11 additions and 2 deletions
|
|
@ -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,
|
||||
],
|
||||
|
|
|
|||
Loading…
Reference in a new issue