File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -271,11 +271,13 @@ callback method:
271271* A closure.
272272
273273Concrete 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.
275276
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.
279281
280282.. include :: /reference/constraints/_groups-option.rst.inc
281283
Original file line number Diff line number Diff line change 1+ .. _reference-constraints-payload:
2+
13``payload``
24~~~~~~~~~~~
35
You can’t perform that action at this time.
0 commit comments