Skip to content

Commit c731dde

Browse files
committed
Merge branch '4.4'
* 4.4: Remove info about the HandlersLocator alias
2 parents a2974a9 + 999154a commit c731dde

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
@@ -87,7 +87,7 @@ Example::
8787

8888
$bus = new MessageBus([
8989
new HandleMessageMiddleware(new HandlersLocator([
90-
MyMessage::class => ['dummy' => $handler],
90+
MyMessage::class => [$handler],
9191
])),
9292
]);
9393

@@ -149,8 +149,7 @@ At the moment, the Symfony Messenger has the following built-in envelope stamps:
149149
:class:`Symfony\\Component\\Messenger\\Transport\\Sender\\SendersLocator`.
150150
#. :class:`Symfony\\Component\\Messenger\\Stamp\\HandledStamp`,
151151
a stamp that marks the message as handled by a specific handler.
152-
Allows accessing the handler returned value, the handler callable name
153-
and its alias if available from the :class:`Symfony\\Component\\Messenger\\Handler\\HandlersLocator`.
152+
Allows accessing the handler returned value and the handler name.
154153

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

0 commit comments

Comments
 (0)