Skip to content

Commit 7f9f20f

Browse files
committed
[Mesenger] Fix code example
1 parent c2c14fd commit 7f9f20f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

messenger.rst

+2-3
Original file line numberDiff line numberDiff line change
@@ -2526,10 +2526,9 @@ wherever you need a query bus behavior instead of the ``MessageBusInterface``::
25262526
}
25272527

25282528
You can also add new stamps when handling a message; they will be appended
2529-
to the existing ones. For example, you can add a ``DoctrineFlushStamp`` to
2530-
flush the entity manager after handling the message::
2529+
to the existing ones::
25312530

2532-
$this->handle(new SomeMessage($data), [new DoctrineFlushStamp()]);
2531+
$this->handle(new SomeMessage($data), [new SomeStamp(), new AnotherStamp()]);
25332532

25342533
.. versionadded:: 7.3
25352534

0 commit comments

Comments
 (0)