8000 Merge branch '4.3' into 4.4 · symfony/symfony-docs@999154a · GitHub
[go: up one dir, main page]

Skip to content

Commit 999154a

Browse files
committed
Merge branch '4.3' into 4.4
* 4.3: Remove info about the HandlersLocator alias
2 parents 60f1409 + d3dd40c commit 999154a

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

components/messenger.rst

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Example::
9393

9494
$bus = new MessageBus([
9595
new HandleMessageMiddleware(new HandlersLocator([
96-
MyMessage::class => ['dummy' => $handler],
96+
MyMessage::class => [$handler],
9797
])),
9898
]);
9999

@@ -155,8 +155,7 @@ At the moment, the Symfony Messenger has the following built-in envelope stamps:
155155
:class:`Symfony\\Component\\Messenger\\Transport\\Sender\\SendersLocator`.
156156
#. :class:`Symfony\\Component\\Messenger\\Stamp\\HandledStamp`,
157157
a stamp that marks the message as handled by a specific handler.
158-
Allows accessing the handler returned value, the handler callable name
159-
and its alias if available from the :class:`Symfony\\Component\\Messenger\\Handler\\HandlersLocator`.
158+
Allows accessing the handler returned value and the handler name.
160159

161160
Instead of dealing directly with the messages in the middleware you receive the envelope.
162161
Hence you can inspect the envelope content and its stamps, or add any::

0 commit comments

Comments
 (0)
0