10000 [Notifier] Add changelog entries · symfony/symfony@a768a56 · GitHub
[go: up one dir, main page]

Skip to content

Commit a768a56

Browse files
committed
[Notifier] Add changelog entries
1 parent 344ae72 commit a768a56

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed

src/Symfony/Component/Notifier/CHANGELOG.md

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,28 @@ CHANGELOG
44
5.1.0
55
-----
66

7+
* The `EmailRecipientInterface` with `hasEmail():bool` and `getEmail():string`
8+
methods was introduced.
9+
* [BC BREAK] Added method `hasPhone():bool` to `SmsRecipientInterface`.
10+
* Added `email` and and `phone` property to `Recipient`.
11+
* [BC BREAK] The `Recipient` now implements `EmailRecipientInterface` and `SmsRecipientInterface`.
12+
* [BC BREAK] The `NoRecipient` now implements `EmailRecipientInterface` and `SmsRecipientInterface`.
13+
* [BC BREAK] Removed the `AdminRecipient`.
14+
* [BC BREAK] Changed the type-hint of the `$recipient` argument in the `as*Message()`
15+
of the `EmailNotificationInterface` and `SmsNotificationInterface` to `EmailRecipientInterface`
16+
and `SmsRecipientInterface`.
17+
* [BC BREAK] Changed the type-hint of the `$recipient` argument in the static `fromNotification()`
18+
factory methods in `EmailMessage` and `SmsMessage` to `EmailRecipientInterface`
19+
and `SmsRecipientInterface`.
20+
* Changed `EmailChannel` to only support recipients which implement the `EmailRecipientInterface`
21+
and have an email set.
22+
* Changed `SmsChannel` to only supports recipients which implement the `SmsRecipientInterface`
23+
and have a phone number set.
724
* Added the Mattermost notifier bridge
8-
* [BC BREAK] The `ChatMessage::fromNotification()` method's `$recipient` and `$transport`
9-
arguments were removed.
10-
* [BC BREAK] The `EmailMessage::fromNotification()` and `SmsMessage::fromNotification()`
11-
methods' `$transport` argument was removed.
25+
* [BC BREAK] The `ChatMessage::fromNotification()` method's `$recipient` and `$transport`
26+
arguments were removed.
27+
* [BC BREAK] The `EmailMessage::fromNotification()` and `SmsMessage::fromNotification()`
28+
methods' `$transport` argument was removed.
1229

1330
5.0.0
1431
-----

0 commit comments

Comments
 (0)
0