-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
[Validator] Add Week
constraint
#20110
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
9d8c81b
to
a1f7838
Compare
Silly copy-paste from me, sorry 🤦 I addressed your comments |
a1f7838
to
c68e60b
Compare
reference/constraints/Week.rst
Outdated
The ``Week`` constraint was introduced in Symfony 7.2. | ||
|
||
Validates that a string (or an object implementing the ``Stringable`` PHP interface) | ||
matches a given week number. The week number format is defined by ISO-8601 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what about link to wikipedia ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here you go
reference/constraints/Week.rst
Outdated
|
||
use Symfony\Component\Validator\Constraints as Assert; | ||
|
||
class OnlineCourseDTO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
entity and dto seems weird
what about removing dto ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agree 👍
c68e60b
to
148c184
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some small comments
148c184
to
323391d
Compare
Alex, thanks a lot for contributing this nice constraint and the docs for it. Thanks to reviewers too. The contents were great but I made some minor tweaks while merging (3f0fdba). Thanks! |
Fix #20109