Skip to content

Commit a6836c1

Browse files
committed
feature #48389 [Notifier] Add Bandwidth bridge (gnito-org)
This PR was squashed before being merged into the 6.3 branch. Discussion ---------- [Notifier] Add Bandwidth bridge | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | <!-- prefix each issue number with "Fix #", no need to create an issue if none exists, explain below instead --> | License | MIT | Doc PR | symfony/symfony-docs#17483 | Recipe | symfony/recipes#1153 This PR add the notifier bridge for [Bandwidth](https://www.bandwidth.com/) (SMS). Commits ------- 604fd9f590 [Notifier] Add Bandwidth bridge
2 parents 0927c97 + 1a880d0 commit a6836c1

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
@@ -24,6 +24,10 @@ class UnsupportedSchemeException extends LogicException
2424
'class' => Bridge\AllMySms\AllMySmsTransportFactory::class,
2525
'package' => 'symfony/all-my-sms-notifier',
2626
],
27+
'bandwidth' => [
28+
'class' => Bridge\Bandwidth\BandwidthTransportFactory::class,
29+
'package' => 'symfony/bandwidth-notifier',
30+
],
2731
'clickatell' => [
2832
'class' => Bridge\Clickatell\ClickatellTransportFactory::class,
2933
'package' => 'symfony/clickatell-notifier',

Tests/Exception/UnsupportedSchemeExceptionTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
use Symfony\Bridge\PhpUnit\ClassExistsMock;
1616
use Symfony\Component\Notifier\Bridge\AllMySms\AllMySmsTransportFactory;
1717
use Symfony\Component\Notifier\Bridge\AmazonSns\AmazonSnsTransportFactory;
18+
use Symfony\Component\Notifier\Bridge\Bandwidth\BandwidthTransportFactory;
1819
use Symfony\Component\Notifier\Bridge\Clickatell\ClickatellTransportFactory;
1920
use Symfony\Component\Notifier\Bridge\ContactEveryone\ContactEveryoneTransportFactory;
2021
use Symfony\Component\Notifier\Bridge\Discord\DiscordTransportFactory;
@@ -76,6 +77,7 @@ public static function setUpBeforeClass(): void
7677
ClassExistsMock::withMockedClasses([
7778
AllMySmsTransportFactory::class => false,
7879
AmazonSnsTransportFactory::class => false,
80+
BandwidthTransportFactory::class => false,
7981
ClickatellTransportFactory::class => false,
8082
ContactEveryoneTransportFactory::class => false,
8183
DiscordTransportFactory::class => false,
@@ -143,6 +145,7 @@ public function messageWhereSchemeIsPartOfSchemeToPackageMapProvider(): \Generat
143145
{
144146
yield ['allmysms', 'symfony/all-my-sms-notifier'];
145147
yield ['sns', 'symfony/amazon-sns-notifier'];
148+
yield ['bandwidth', 'symfony/bandwidth-notifier'];
146149
yield ['clickatell', 'symfony/clickatell-notifier'];
147150
yield ['contact-everyone', 'symfony/contact-everyone-notifier'];
148151
yield ['discord', 'symfony/discord-notifier'];

Transport.php

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

1414
use Symfony\Component\Notifier\Bridge\AllMySms\AllMySmsTransportFactory;
1515
use Symfony\Component\Notifier\Bridge\AmazonSns\AmazonSnsTransportFactory;
16+
use Symfony\Component\Notifier\Bridge\Bandwidth\BandwidthTransportFactory;
1617
use Symfony\Component\Notifier\Bridge\Chatwork\ChatworkTransportFactory;
1718
use Symfony\Component\Notifier\Bridge\Clickatell\ClickatellTransportFactory;
1819
use Symfony\Component\Notifier\Bridge\ContactEveryone\ContactEveryoneTransportFactory;
@@ -79,6 +80,7 @@ final class Transport
7980
private const FACTORY_CLASSES = [
8081
AllMySmsTransportFactory::class,
8182
AmazonSnsTransportFactory::class,
83+
BandwidthTransportFactory::class,
8284
ChatworkTransportFactory::class,
8385
ClickatellTransportFactory::class,
8486
ContactEveryoneTransportFactory::class,

0 commit comments

Comments
 (0)