8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b12d0ba commit a89e32eCopy full SHA for a89e32e
components/messenger.rst
@@ -83,10 +83,13 @@ are configured for you:
83
Example::
84
85
use App\Message\MyMessage;
86
+ use App\MessageHandler\MyMessageHandler;
use Symfony\Component\Messenger\Handler\HandlersLocator;
87
88
use Symfony\Component\Messenger\MessageBus;
89
use Symfony\Component\Messenger\Middleware\HandleMessageMiddleware;
90
91
+ $handler = new MyMessageHandler();
92
+
93
$bus = new MessageBus([
94
new HandleMessageMiddleware(new HandlersLocator([
95
MyMessage::class => [$handler],
0 commit comments