From fe8dc4346bc23db6a778f2c72c16321cf05773e0 Mon Sep 17 00:00:00 2001 From: HypeMC Date: Wed, 2 Oct 2019 00:53:01 +0200 Subject: [PATCH] Remove info about the HandlersLocator alias --- components/messenger.rst | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/components/messenger.rst b/components/messenger.rst index 11ef05c0442..c17220d25a3 100644 --- a/components/messenger.rst +++ b/components/messenger.rst @@ -93,7 +93,7 @@ Example:: $bus = new MessageBus([ new HandleMessageMiddleware(new HandlersLocator([ - MyMessage::class => ['dummy' => $handler], + MyMessage::class => [$handler], ])), ]); @@ -155,8 +155,7 @@ At the moment, the Symfony Messenger has the following built-in envelope stamps: :class:`Symfony\\Component\\Messenger\\Transport\\Sender\\SendersLocator`. #. :class:`Symfony\\Component\\Messenger\\Stamp\\HandledStamp`, a stamp that marks the message as handled by a specific handler. - Allows accessing the handler returned value, the handler callable name - and its alias if available from the :class:`Symfony\\Component\\Messenger\\Handler\\HandlersLocator`. + Allows accessing the handler returned value and the handler name. Instead of dealing directly with the messages in the middleware you receive the envelope. Hence you can inspect the envelope content and its stamps, or add any::