Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[Validator] Add option to pass custom values to Expression validator#25504
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
d5ca7f2 toe98b8daCompare| public$message ='This value is not valid.'; | ||
| public$expression; | ||
| public$values =array(); |
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.
should it be named $variables?
ostroluckyDec 18, 2017 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
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.
I've named it according to second argument in ExpressionLanguage::evaluate. If $variables is better name, maybe it's worth it to change it there too? What do you guys think?
1b489fc to57d79b2Compareostrolucky commentedJan 4, 2018 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Ping. Values or variables? Will change in ExpressionLanguage accordingly. Vote by reacting with: |
nicolas-grekas commentedJan 4, 2018
I'm good with values also. Any other opinion? |
57d79b2 toba0565eCompareostrolucky commentedJan 4, 2018
Rebased. More options for naming :
Vote by reacting with: 👍: variables |
fabpot commentedJan 8, 2018
Thank you@ostrolucky. |
…sion validator (ostrolucky)This PR was merged into the 4.1-dev branch.Discussion----------[Validator] Add option to pass custom values to Expression validator| Q | A| ------------- | ---| Branch? | master| Bug fix? | no| New feature? | yes| BC breaks? | no| Deprecations? | no| Tests pass? | yes| Fixed tickets | -| License | MIT| Doc PR | -I needed this in a Form. I had no way to pass things from `$options` into Expression validator.Maybe can aid in#23134Commits-------ba0565e [Validator] Add option to pass custom values to Expression validator
Uh oh!
There was an error while loading.Please reload this page.
I needed this in a Form. I had no way to pass things from
$optionsinto Expression validator.Maybe can aid in#23134