We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d53cc63 commit 97d301aCopy full SHA for 97d301a
messenger.rst
@@ -2512,6 +2512,20 @@ wherever you need a query bus behavior instead of the ``MessageBusInterface``::
2512
}
2513
2514
2515
+You also can also add stamps when handling a message. For example, you can
2516
+add an ``DoctrineFlushStamp`` to flush the entity manager after handling the message::
2517
+
2518
+ $this->handle(new SomeMessage($data), [new DoctrineFlushStamp()]);
2519
2520
+.. note::
2521
2522
+ If adding a stamp of the same type that already exists in the envelope,
2523
+ both stamps will be kept (see `Envelopes & Stamps`_).
2524
2525
+.. versionadded:: 7.3
2526
2527
+ The ``$stamps`` parameter on the handle method was introduced in Symfony 7.3.
2528
2529
Customizing Handlers
2530
--------------------
2531
0 commit comments