From a8448a78ec082ec8fcc76be70ba316647b68c6db Mon Sep 17 00:00:00 2001 From: Christiaan Baartse Date: Tue, 13 Oct 2020 08:55:34 +0200 Subject: [PATCH] Do not promote deprecated message_bus service use The message_bus service is deprecated and messenger.default_bus should be used instead. --- messenger.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/messenger.rst b/messenger.rst index 7a4a9afccc2..e68234be838 100644 --- a/messenger.rst +++ b/messenger.rst @@ -83,7 +83,7 @@ Dispatching the Message ----------------------- You're ready! To dispatch the message (and call the handler), inject the -``message_bus`` service (via the ``MessageBusInterface``), like in a controller:: +``messenger.default_bus`` service (via the ``MessageBusInterface``), like in a controller:: // src/Controller/DefaultController.php namespace App\Controller;