Skip to content

Conversation

alexandre-daubois
Copy link
Member

Fix #20109

@alexandre-daubois
Copy link
Member Author

Silly copy-paste from me, sorry 🤦 I addressed your comments

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
Copy link
Contributor

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 ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here you go


use Symfony\Component\Validator\Constraints as Assert;

class OnlineCourseDTO
Copy link
Contributor

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 ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree 👍

Copy link
Contributor

@OskarStark OskarStark left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some small comments

@javiereguiluz
Copy link
Member

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment