Skip to content

Commit 0d3401e

Browse files
committed
minor symfony#17331 [Messenger] Deprecate MessageSubscriberInterface (mdoutreluingne)
This PR was squashed before being merged into the 6.2 branch. Discussion ---------- [Messenger] Deprecate `MessageSubscriberInterface` Fixes symfony#17319 For `MessageHandlerInterface` class, it's not necessary to create a deprecation directive because we display it more since Symfony 5.3 in Symfony doc. I have created a PR symfony#17332 for removing note block as it is no longer necessary in Symfony 6.0. Commits ------- cb957d7 [Messenger] Deprecate `MessageSubscriberInterface`
2 parents 220aeb0 + cb957d7 commit 0d3401e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

messenger.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1980,6 +1980,11 @@ A handler class can handle multiple messages or configure itself by implementing
19801980
}
19811981
}
19821982

1983+
.. deprecated:: 6.2
1984+
1985+
:class:`Symfony\\Component\\Messenger\\Handler\\MessageSubscriberInterface` was deprecated in Symfony 6.2.
1986+
Use :class:`#[AsMessageHandler] <Symfony\\Component\\Messenger\\Attribute\\AsMessageHandler>` attribute instead.
1987+
19831988
Binding Handlers to Different Transports
19841989
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19851990

0 commit comments

Comments
 (0)