tailor icon indicating copy to clipboard operation
tailor copied to clipboard

[FEATURE] Provide detailed error messages for `ext_emconf.php` validation

Open eliashaeussler opened this issue 1 year ago • 1 comments

This PR proposes a more fine-grained way of ext_emconf.php file validation. A new EmConfValidationError class is introduced (can be converted to a native enum once support for PHP < 8.1 is dropped) which provides a set of possible validation errors. These errors are collected in a new EmConfVersionValidator::collectErrors() method and will be displayed in VersionService instead of the previously used generic error message. This allows users to easily find and solve configuration mismatches in ext_emconf.php file.

Example:

image

eliashaeussler avatar Oct 29 '24 07:10 eliashaeussler

Hi @o-ba, this branch is now also up to date. Would be great if you can take a look at this PR as well :)

Cheers, Elias

eliashaeussler avatar Nov 17 '24 11:11 eliashaeussler