Skip to content

Commit 4bd33e4

Browse files
mpiotfabpot
authored andcommitted
Add Discord bridge notifier
1 parent 4305178 commit 4bd33e4

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@
9999
use Symfony\Component\Mime\Header\Headers;
100100
use Symfony\Component\Mime\MimeTypeGuesserInterface;
101101
use Symfony\Component\Mime\MimeTypes;
102+
use Symfony\Component\Notifier\Bridge\Discord\DiscordTransportFactory;
102103
use Symfony\Component\Notifier\Bridge\Esendex\EsendexTransportFactory;
103104
use Symfony\Component\Notifier\Bridge\Firebase\FirebaseTransportFactory;
104105
use Symfony\Component\Notifier\Bridge\FreeMobile\FreeMobileTransportFactory;
@@ -2222,6 +2223,7 @@ private function registerNotifierConfiguration(array $config, ContainerBuilder $
22222223
SmsapiTransportFactory::class => 'notifier.transport_factory.smsapi',
22232224
EsendexTransportFactory::class => 'notifier.transport_factory.esendex',
22242225
SendinblueNotifierTransportFactory::class => 'notifier.transport_factory.sendinblue',
2226+
DiscordTransportFactory::class => 'notifier.transport_factory.discord',
22252227
];
22262228

22272229
foreach ($classToServices as $class => $service) {

Resources/config/notifier_transports.php

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

1212
namespace Symfony\Component\DependencyInjection\Loader\Configurator;
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;
@@ -110,6 +111,10 @@
110111
->parent('notifier.transport_factory.abstract')
111112
->tag('texter.transport_factory')
112113

114+
->set('notifier.transport_factory.discord', DiscordTransportFactory::class)
115+
->parent('notifier.transport_factory.abstract')
116+
->tag('chatter.transport_factory')
117+
113118
->set('notifier.transport_factory.null', NullTransportFactory::class)
114119
->parent('notifier.transport_factory.abstract')
115120
->tag('chatter.transport_factory')

0 commit comments

Comments
 (0)