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

Signed-off-by: Joas Schilling <coding@schilljs.com>
pull/44799/head
Joas Schilling 2 months ago
parent 715077ea70
commit bbaaaf4b91
No known key found for this signature in database
GPG Key ID: 74434EFE0D2E2205

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

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

Loading…
Cancel
Save