Skip to content

Commit 143ed72

Browse files
committed
minor #14396 Do not promote deprecated message_bus service use (christiaan)
This PR was merged into the 4.4 branch. Discussion ---------- Do not promote deprecated message_bus service use The message_bus service is deprecated and messenger.default_bus should be used instead. <!-- If your pull request fixes a BUG, use the oldest maintained branch that contains the bug (see https://symfony.com/releases for the list of maintained branches). If your pull request documents a NEW FEATURE, use the same Symfony branch where the feature was introduced (and `5.x` for features of unreleased versions). --> Commits ------- a8448a7 Do not promote deprecated message_bus service use
2 parents 78b29b3 + a8448a7 commit 143ed72

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)