-
-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
feat(when constraint): add context variable #20314
base: 7.2
Are you sure you want to change the base?
Conversation
Depending on how you use the constraint, you have access to 1 or 3 variables | ||
in your expression: |
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.
Depending on how you use the constraint, you have access to 1 or 3 variables | |
in your expression: | |
Depending on how you use the constraint, you have access to different variables | |
in your expression: |
To match with text in doc for Expression constraint, "to 1 or 3 variables" doesn't feel clear to me
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 « multiple internal variables »
``context`` | ||
This is the context that is used in validation |
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.
Could you add a versionadded directive for this new variable ?
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.
We need to improve this description. Right now it's basically saying "context is the validation context" 😐
For example, in the Validation article (https://symfony.com/doc/current/validation.html) the word context
is not even mentioned once. So, what's the "validation context"? Any article that we could link from here so readers can learn more? Thanks!
Issue: #20312