From 9b3b988f784a609a3308be47caedd2d3aac078f7 Mon Sep 17 00:00:00 2001 From: Matthieu Gostiaux Date: Fri, 2 Dec 2022 16:25:08 +0100 Subject: [PATCH] remove wrong versionadded for AsMessageHandler as this attribute was added in 5.4 (Class exist in 5.4 branch and this post mention it too https://symfony.com/blog/new-in-symfony-5-4-messenger-improvements). This message is also not present in 6.0 branch but present on 6.1, 6.2 and 6.3 branches, this may be an error. .. versionadded:: 6.1 Support for ``#[AsMessageHandler]`` on methods was introduced in Symfony 6.1. --- messenger.rst | 4 ---- 1 file changed, 4 deletions(-) diff --git a/messenger.rst b/messenger.rst index f133597dbcb..d370aea6052 100644 --- a/messenger.rst +++ b/messenger.rst @@ -76,10 +76,6 @@ message class (or a message interface):: methods. You may use the attribute on as many methods in a single class as you like, allowing you to group the handling of multiple related types of messages. -.. versionadded:: 6.1 - - Support for ``#[AsMessageHandler]`` on methods was introduced in Symfony 6.1. - Thanks to :ref:`autoconfiguration ` and the ``SmsNotification`` type-hint, Symfony knows that this handler should be called when an ``SmsNotification`` message is dispatched. Most of the time, this is all you need to do. But you can