feat(capabilities): Expose if mod-rewrite is working via capabilities

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling 2024-04-12 12:55:59 +02:00
parent 715077ea70
commit bbaaaf4b91
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205
2 changed files with 7 additions and 1 deletions

View File

@ -98,7 +98,8 @@
"pollinterval",
"webdav-root",
"reference-api",
"reference-regex"
"reference-regex",
"mod-rewrite-working"
],
"properties": {
"pollinterval": {
@ -113,6 +114,9 @@
},
"reference-regex": {
"type": "string"
},
"mod-rewrite-working": {
"type": "boolean"
}
}
}

View File

@ -49,6 +49,7 @@ class CoreCapabilities implements ICapability {
* webdav-root: string,
* reference-api: boolean,
* reference-regex: string,
* mod-rewrite-working: boolean,
* },
* }
*/
@ -59,6 +60,7 @@ class CoreCapabilities implements ICapability {
'webdav-root' => $this->config->getSystemValueString('webdav-root', 'remote.php/webdav'),
'reference-api' => true,
'reference-regex' => IURLGenerator::URL_REGEX_NO_MODIFIERS,
'mod-rewrite-working' => $this->config->getSystemValueBool('htaccess.IgnoreFrontController') || getenv('front_controller_active') === 'true',
],
];
}