8000 minor #12402 Remove info about the HandlersLocator alias (HypeMC) · symfony/symfony-docs@d3dd40c · GitHub
[go: up one dir, main page]

Skip to content

Commit d3dd40c

Browse files
committed
minor #12402 Remove info about the HandlersLocator alias (HypeMC)
This PR was merged into the 4.3 branch. Discussion ---------- Remove info about the HandlersLocator alias It seems that the option to provide an alias to the `HandlersLocator` was removed in symfony/symfony#30958 , but there are still some mentions of it in the documentation. Commits ------- fe8dc43 Remove info about the HandlersLocator alias
2 parents cd6b150 + fe8dc43 commit d3dd40c

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