Skip to content

Commit 72c8db3

Browse files
committed
review
1 parent dd3f803 commit 72c8db3

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy