10000 Remove info about the HandlersLocator alias · symfony/symfony-docs@fe8dc43 · GitHub
[go: up one dir, main page]

Skip to content

Commit fe8dc43

Browse files
committed
Remove info about the HandlersLocator alias
1 parent cd6b150 commit fe8dc43

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