Skip to content

Commit dc8dac2

Browse files
committed
[Messenger] Deprecate MessageHandlerInterface and MessageSubscriberInterface
1 parent b1b77f3 commit dc8dac2

File tree

4 files changed

+14
-0
lines changed

4 files changed

+14
-0
lines changed

UPGRADE-6.2.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ Mailer
1919

2020
* Deprecate the `OhMySMTP` transport, use `MailPace` instead
2121

22+
Messenger
23+
--------
24+
25+
* Deprecate `MessageHandlerInterface` and `MessageSubscriberInterface`, use the `AsMessageHandler` attribute instead
26+
2227
Security
2328
--------
2429

src/Symfony/Component/Messenger/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
CHANGELOG
22
=========
33

4+
6.2
5+
---
6+
7+
* Deprecate `MessageHandlerInterface` and `MessageSubscriberInterface`, use the `AsMessageHandler` attribute instead
8+
49
6.1
510
---
611

src/Symfony/Component/Messenger/Handler/MessageHandlerInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* Marker interface for message handlers.
1616
*
1717
* @author Samuel Roze <samuel.roze@gmail.com>
18+
*
19+
* @deprecated since symfony/messenger 6.2, use the AsMessageHandler attribute instead
1820
*/
1921
interface MessageHandlerInterface
2022
{

src/Symfony/Component/Messenger/Handler/MessageSubscriberInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
* Handlers can implement this interface to handle multiple messages.
1616
*
1717
* @author Samuel Roze <samuel.roze@gmail.com>
18+
*
19+
* @deprecated since symfony/messenger 6.2, use the AsMessageHandler attribute instead
1820
*/
1921
interface MessageSubscriberInterface extends MessageHandlerInterface
2022
{

0 commit comments

Comments
 (0)