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

Commit72c8db3

Browse files
committed
review
1 parentdd3f803 commit72c8db3

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

‎messenger.rst‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2245,6 +2245,12 @@ the consumer (e.g. render a template with links). This middleware stores the
22452245
original request context (i.e. the host, the HTTP port, etc.) which is needed
22462246
when building absolute URLs.
22472247

2248+
Add the ``validation`` middleware if you need to validate the message object before handling it.
2249+
Internally it uses the Symfony's validator. The:class:`Symfony\\Component\\Messenger\\Stamp\\ValidationStamp` should
2250+
be used to configure the validation groups. If validation fails,
2251+
a ``ValidationFailedException`` will be thrown that you can catch
2252+
and read errors from.
2253+
22482254
..configuration-block::
22492255

22502256
..code-block::yaml
@@ -2294,11 +2300,6 @@ when building absolute URLs.
22942300
};
22952301
22962302
2297-
Add the ``validation`` middleware if you need to validate the message object before handling it.
2298-
Internally it uses the Symfony's validator. If validation fails, a ``ValidationFailedException``
2299-
will be thrown that you can catch and read errors from.
2300-
2301-
23022303
Messenger Events
23032304
~~~~~~~~~~~~~~~~
23042305

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp