@@ -2245,6 +2245,12 @@ the consumer (e.g. render a template with links). This middleware stores the
22452245original request context (i.e. the host, the HTTP port, etc.) which is needed
22462246when 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