Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit5bc5989

Browse files
committed
Merge branch '6.3' into 6.4
* 6.3: Missing information about payload in callback
2 parentse24e07d +92a08e2 commit5bc5989

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

‎reference/constraints/Callback.rst‎

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,11 +271,13 @@ callback method:
271271
* A closure.
272272

273273
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.
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

‎reference/constraints/_payload-option.rst.inc‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
.. _reference-constraints-payload:
2+
13
``payload``
24
~~~~~~~~~~~
35

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp