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

Appearance settings

Commit 72c8db3

Browse filesBrowse files
committed
review
1 parent dd3f803 commit 72c8db3
Copy full SHA for 72c8db3

File tree

Expand file treeCollapse file tree

1 file changed

+6
-5
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-5
lines changed

‎messenger.rst

Copy file name to clipboardExpand all lines: messenger.rst
+6-5Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.