refactor config validation#617
Open
simonLeary42 wants to merge 11 commits intomainfrom
Open
Conversation
6fa06d4 to
0fabcf1
Compare
add8e16 to
e7843af
Compare
df95b0a to
3bdc835
Compare
Contributor
There was a problem hiding this comment.
Pull request overview
Refactors configuration validation by centralizing SMTP and expiry config checks in UnityDeployment and adds a CLI script to validate configs during deployment updates.
Changes:
- Moved SMTP validation out of
UnityMailerintoUnityDeploymentand tightenedssl_verifyhandling to be boolean. - Reworked expiry validation using assertion-based helpers and wrapped assertion failures as
InvalidConfigurationException. - Added a
workers/configtest.phpscript and documented running it during upgrade; updated base config and changelog for thessl_verifytype change.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| workers/configtest.php | Adds a CLI entrypoint to load the app and trigger config validation. |
| resources/lib/UnityMailer.php | Removes SMTP config validation and updates ssl_verify check to strict boolean. |
| resources/lib/UnityDeployment.php | Centralizes SMTP/expiry validation using assertion-based helpers. |
| README.md | Documents running the new config test script during upgrade. |
| deployment/config.base.ini | Changes [smtp] ssl_verify default from string to boolean. |
| CHANGELOG.md | Notes the breaking change in [smtp] ssl_verify type. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
b7c96df to
1707ec9
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
UnityMailertoUnityDeploymentUnityDeployment