Skip to content

Commit 66d0c40

Browse files
committed
Add Mattermost notifier bridge
1 parent f7387f8 commit 66d0c40

File tree

3 files changed

+7
-0
lines changed

3 files changed

+7
-0
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ CHANGELOG
44
5.1.0
55
-----
66

7+
* Added the Mattermost notifier bridge
78
* [BC BREAK] The `ChatMessage::fromNotification()` method's `$recipient` and `$transport`
89
arguments were removed.
910
* [BC BREAK] The `EmailMessage::fromNotification()` and `SmsMessage::fromNotification()`

Exception/UnsupportedSchemeException.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ class UnsupportedSchemeException extends LogicException
3030
'class' => Bridge\Telegram\TelegramTransportFactory::class,
3131
'package' => 'symfony/telegram-notifier',
3232
],
33+
'mattermost' => [
34+
'class' => Bridge\Mattermost\MattermostTransportFactory::class,
35+
'package' => 'symfony/mattermost-notifier',
36+
],
3337
'nexmo' => [
3438
'class' => Bridge\Nexmo\NexmoTransportFactory::class,
3539
'package' => 'symfony/nexmo-notifier',

Transport.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
namespace Symfony\Component\Notifier;
1313

14+
use Symfony\Component\Notifier\Bridge\Mattermost\MattermostTransportFactory;
1415
use Symfony\Component\Notifier\Bridge\Nexmo\NexmoTransportFactory;
1516
use Symfony\Component\Notifier\Bridge\Slack\SlackTransportFactory;
1617
use Symfony\Component\Notifier\Bridge\Telegram\TelegramTransportFactory;
@@ -36,6 +37,7 @@ class Transport
3637
private const FACTORY_CLASSES = [
3738
SlackTransportFactory::class,
3839
TelegramTransportFactory::class,
40+
MattermostTransportFactory::class,
3941
NexmoTransportFactory::class,
4042
TwilioTransportFactory::class,
4143
];

0 commit comments

Comments
 (0)