Skip to content

Commit f0bebdd

Browse files
franckranaivofabpot
authored andcommitted
[Notifier] Add Contact Everyone Bridge
1 parent 34be8d3 commit f0bebdd

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

Exception/UnsupportedSchemeException.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@ class UnsupportedSchemeException extends LogicException
2828
'class' => Bridge\Clickatell\ClickatellTransportFactory::class,
2929
'package' => 'symfony/clickatell-notifier',
3030
],
31+
'contact-everyone' => [
32+
'class' => Bridge\ContactEveryone\ContactEveryoneTransportFactory::class,
33+
'package' => 'symfony/contact-everyone-notifier',
34+
],
3135
'discord' => [
3236
'class' => Bridge\Discord\DiscordTransportFactory::class,
3337
'package' => 'symfony/discord-notifier',

Tests/Exception/UnsupportedSchemeExceptionTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
use Symfony\Component\Notifier\Bridge\AllMySms\AllMySmsTransportFactory;
1717
use Symfony\Component\Notifier\Bridge\AmazonSns\AmazonSnsTransportFactory;
1818
use Symfony\Component\Notifier\Bridge\Clickatell\ClickatellTransportFactory;
19+
use Symfony\Component\Notifier\Bridge\ContactEveryone\ContactEveryoneTransportFactory;
1920
use Symfony\Component\Notifier\Bridge\Discord\DiscordTransportFactory;
2021
use Symfony\Component\Notifier\Bridge\Esendex\EsendexTransportFactory;
2122
use Symfony\Component\Notifier\Bridge\FakeChat\FakeChatTransportFactory;
@@ -72,6 +73,7 @@ public static function setUpBeforeClass(): void
7273
AllMySmsTransportFactory::class => false,
7374
AmazonSnsTransportFactory::class => false,
7475
ClickatellTransportFactory::class => false,
76+
ContactEveryoneTransportFactory::class => false,
7577
DiscordTransportFactory::class => false,
7678
EsendexTransportFactory::class => false,
7779
FakeChatTransportFactory::class => false,
@@ -134,6 +136,7 @@ public function messageWhereSchemeIsPartOfSchemeToPackageMapProvider(): \Generat
134136
yield ['allmysms', 'symfony/all-my-sms-notifier'];
135137
yield ['sns', 'symfony/amazon-sns-notifier'];
136138
yield ['clickatell', 'symfony/clickatell-notifier'];
139+
yield ['contact-everyone', 'symfony/contact-everyone-notifier'];
137140
yield ['discord', 'symfony/discord-notifier'];
138141
yield ['esendex', 'symfony/esendex-notifier'];
139142
yield ['fakechat', 'symfony/fake-chat-notifier'];

Transport.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
use Symfony\Component\Notifier\Bridge\AllMySms\AllMySmsTransportFactory;
1515
use Symfony\Component\Notifier\Bridge\AmazonSns\AmazonSnsTransportFactory;
1616
use Symfony\Component\Notifier\Bridge\Clickatell\ClickatellTransportFactory;
17+
use Symfony\Component\Notifier\Bridge\ContactEveryone\ContactEveryoneTransportFactory;
1718
use Symfony\Component\Notifier\Bridge\Discord\DiscordTransportFactory;
1819
use Symfony\Component\Notifier\Bridge\Engagespot\EngagespotTransportFactory;
1920
use Symfony\Component\Notifier\Bridge\Esendex\EsendexTransportFactory;
@@ -71,6 +72,7 @@ final class Transport
7172
AllMySmsTransportFactory::class,
7273
AmazonSnsTransportFactory::class,
7374
ClickatellTransportFactory::class,
75+
ContactEveryoneTransportFactory::class,
7476
DiscordTransportFactory::class,
7577
EngagespotTransportFactory::class,
7678
EsendexTransportFactory::class,

0 commit comments

Comments
 (0)