Skip to content

Commit a8448a7

Browse files
authored
Do not promote deprecated message_bus service use
The message_bus service is deprecated and messenger.default_bus should be used instead.
1 parent c3df056 commit a8448a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

messenger.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Dispatching the Message
8383
-----------------------
8484

8585
You're ready! To dispatch the message (and call the handler), inject the
86-
``message_bus`` service (via the ``MessageBusInterface``), like in a controller::
86+
``messenger.default_bus`` service (via the ``MessageBusInterface``), like in a controller::
8787

8888
// src/Controller/DefaultController.php
8989
namespace App\Controller;

0 commit comments

Comments
 (0)