Skip to content

Commit d139706

Browse files
committed
feature #46395 [Notifier] Add Contact Everyone Bridge (franckranaivo)
This PR was squashed before being merged into the 6.2 branch. Discussion ---------- [Notifier] Add Contact Everyone Bridge | Q | A | ------------- | --- | Branch? | 6.2 | Bug fix? | no | New feature? | yes | Deprecations? | no | License | MIT | Doc PR | TODO Add Contact Everyone Bridge by Orange Business. This bridge uses the light version of the api which allows SMS to be sent individually. Commits ------- 539d2a1ad0 [Notifier] Add Contact Everyone Bridge
2 parents 9ce33d9 + f0bebdd commit d139706

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;
@@ -73,6 +74,7 @@ public static function setUpBeforeClass(): void
7374
AllMySmsTransportFactory::class => false,
7475
AmazonSnsTransportFactory::class => false,
7576
ClickatellTransportFactory::class => false,
77+
ContactEveryoneTransportFactory::class => false,
7678
DiscordTransportFactory::class => false,
7779
EsendexTransportFactory::class => false,
7880
FakeChatTransportFactory::class => false,
@@ -136,6 +138,7 @@ public function messageWhereSchemeIsPartOfSchemeToPackageMapProvider(): \Generat
136138
yield ['allmysms', 'symfony/all-my-sms-notifier'];
137139
yield ['sns', 'symfony/amazon-sns-notifier'];
138140
yield ['clickatell', 'symfony/clickatell-notifier'];
141+
yield ['contact-everyone', 'symfony/contact-everyone-notifier'];
139142
yield ['discord', 'symfony/discord-notifier'];
140143
yield ['esendex', 'symfony/esendex-notifier'];
141144
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;
@@ -72,6 +73,7 @@ final class Transport
7273
AllMySmsTransportFactory::class,
7374
AmazonSnsTransportFactory::class,
7475
ClickatellTransportFactory::class,
76+
ContactEveryoneTransportFactory::class,
7577
DiscordTransportFactory::class,
7678
EngagespotTransportFactory::class,
7779
EsendexTransportFactory::class,

0 commit comments

Comments
 (0)