Skip to content

Commit 4df8d56

Browse files
mpiotfabpot
authored andcommitted
Add Discord bridge notifier
1 parent 49a8447 commit 4df8d56

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

Exception/UnsupportedSchemeException.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ class UnsupportedSchemeException extends LogicException
8282
'class' => Bridge\Esendex\EsendexTransportFactory::class,
8383
'package' => 'symfony/esendex-notifier',
8484
],
85+
'discord' => [
86+
'class' => Bridge\Discord\DiscordTransportFactory::class,
87+
'package' => 'symfony/discord-notifier',
88+
],
8589
];
8690

8791
/**

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\Discord\DiscordTransportFactory;
1415
use Symfony\Component\Notifier\Bridge\Esendex\EsendexTransportFactory;
1516
use Symfony\Component\Notifier\Bridge\Firebase\FirebaseTransportFactory;
1617
use Symfony\Component\Notifier\Bridge\FreeMobile\FreeMobileTransportFactory;
@@ -62,6 +63,7 @@ class Transport
6263
SmsapiTransportFactory::class,
6364
EsendexTransportFactory::class,
6465
SendinblueTransportFactory::class,
66+
DiscordTransportFactory::class,
6567
];
6668

6769
private $factories;

0 commit comments

Comments
 (0)