-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Validator] Revert Slug constraint #60475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This commit reverts symfony#58542.
cc @raffaelecarelle, as the original author of the PR. If there is something we're overlooking or you see value in the constraint that I'm missing, please feel free to share it here so we can consider it. |
I think PR #59383 should be reverted too |
Warning you must also update/amend the corresponding blogpost otherwise ppl will think its a fail of release no ? |
PR on 6.4 to remove the translations: #60486 |
Thank you @wouterj. |
This PR was merged into the 6.4 branch. Discussion ---------- Remove translations for slug validation error | Q | A | ------------- | --- | Branch? | 6.4 | Bug fix? | no | New feature? | no <!-- please update src/**/CHANGELOG.md files --> | Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files --> | Issues | | License | MIT Related to #60475 Commits ------- 42eb1c0 Remove translations for slug validation error
After an internal discussion, I think it's best to revert the introduction of the
Slug
constraint:AsciiSlugger
is doing, but a more common approach is to only allow lowercase characters.Regex
constraint, especially when using it'sregex
option to customize the pattern for slugs.Considering this, I believe it is always better for applications to be clear on what they allow in a slug using the
Regex
constraint.