Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

eliashaeussler
Copy link
Contributor

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 eliashaeussler force-pushed the feature/emconf-validation branch from 6e9ebd3 to a55f966 Compare November 17, 2024 11:13
@eliashaeussler
Copy link
Contributor Author

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant