From 74daa0e5689f93432124de30271ea3d73a54404c Mon Sep 17 00:00:00 2001 From: Maxime Doutreluingne Date: Sat, 8 Oct 2022 11:22:00 +0200 Subject: [PATCH] [Messenger] Removing note docblock for MessageHandlerInterface The docblock note is no longer required from Symfony 6.0 onwards as it requires PHP 8.0. --- messenger.rst | 6 ------ 1 file changed, 6 deletions(-) diff --git a/messenger.rst b/messenger.rst index 7ae218ac485..9fd70b268a5 100644 --- a/messenger.rst +++ b/messenger.rst @@ -70,12 +70,6 @@ message class (or a message interface):: } } -.. note:: - - You can also create a class without the attribute (e.g. if you're - using PHP 7.4), by implementing :class:`Symfony\\Component\\Messenger\\Handler\\MessageHandlerInterface` - instead. - 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