File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -271,11 +271,13 @@ callback method:
271
271
* A closure.
272
272
273
273
Concrete callbacks receive an :class: `Symfony\\ Component\\ Validator\\ Context\\ ExecutionContextInterface `
274
- instance as only argument.
274
+ instance as the first argument and the :ref: `payload option <reference-constraints-payload >`
275
+ as the second argument.
275
276
276
- Static or closure callbacks receive the validated object as the first argument
277
- and the :class: `Symfony\\ Component\\ Validator\\ Context\\ ExecutionContextInterface `
278
- instance as the second argument.
277
+ Static or closure callbacks receive the validated object as the first argument,
278
+ the :class: `Symfony\\ Component\\ Validator\\ Context\\ ExecutionContextInterface `
279
+ instance as the second argument and the :ref: `payload option <reference-constraints-payload >`
280
+ as the third argument.
279
281
280
282
.. include :: /reference/constraints/_groups-option.rst.inc
281
283
Original file line number Diff line number Diff line change
1
+ .. _reference-constraints-payload:
2
+
1
3
``payload``
2
4
~~~~~~~~~~~
3
5
You can’t perform that action at this time.
0 commit comments