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 f1dfba2

Browse filesBrowse files
committed
Enhance documentation of HandleTrait::handle
1 parent ab6387e commit f1dfba2
Copy full SHA for f1dfba2

File tree

1 file changed

+6
-1
lines changed
Filter options

1 file changed

+6
-1
lines changed

‎messenger.rst

Copy file name to clipboardExpand all lines: messenger.rst
+6-1Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2512,11 +2512,16 @@ wherever you need a query bus behavior instead of the ``MessageBusInterface``::
25122512
}
25132513
}
25142514

2515-
You also can also specify stamps when handling a message. For example, you can
2515+
You also can also add stamps when handling a message. For example, you can
25162516
add an ``DoctrineFlushStamp`` to flush the entity manager after handling the message::
25172517

25182518
$this->handle(new SomeMessage($data), [new DoctrineFlushStamp()]);
25192519

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+
25202525
.. versionadded:: 7.3
25212526

25222527
The ``$stamps`` parameter on the handle method was introduced in Symfony 7.3.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.