File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -2245,6 +2245,12 @@ the consumer (e.g. render a template with links). This middleware stores the
2245
2245
original request context (i.e. the host, the HTTP port, etc.) which is needed
2246
2246
when building absolute URLs.
2247
2247
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
+
2248
2254
.. configuration-block ::
2249
2255
2250
2256
.. code-block :: yaml
@@ -2294,11 +2300,6 @@ when building absolute URLs.
2294
2300
};
2295
2301
2296
2302
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
-
2302
2303
Messenger Events
2303
2304
~~~~~~~~~~~~~~~~
2304
2305
You can’t perform that action at this time.
0 commit comments