Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd3dd40c

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 aliasIt seems that the option to provide an alias to the `HandlersLocator` was removed insymfony/symfony#30958 , but there are still some mentions of it in the documentation.Commits-------fe8dc43 Remove info about the HandlersLocator alias
2 parentscd6b150 +fe8dc43 commitd3dd40c

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)

[8]ページ先頭

©2009-2025 Movatter.jp