Skip to content

Commit 1a880d0

Browse files
gnito-orgfabpot
authored andcommitted
[Notifier] Add Bandwidth bridge
1 parent 6c65758 commit 1a880d0

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;
@@ -74,6 +75,7 @@ public static function setUpBeforeClass(): void
7475
ClassExistsMock::withMockedClasses([
7576
AllMySmsTransportFactory::class => false,
7677
AmazonSnsTransportFactory::class => false,
78+
BandwidthTransportFactory::class => false,
7779
ClickatellTransportFactory::class => false,
7880
ContactEveryoneTransportFactory::class => false,
7981
DiscordTransportFactory::class => false,
@@ -139,6 +141,7 @@ public function messageWhereSchemeIsPartOfSchemeToPackageMapProvider(): \Generat
139141
{
140142
yield ['allmysms', 'symfony/all-my-sms-notifier'];
141143
yield ['sns', 'symfony/amazon-sns-notifier'];
144+
yield ['bandwidth', 'symfony/bandwidth-notifier'];
142145
yield ['clickatell', 'symfony/clickatell-notifier'];
143146
yield ['contact-everyone', 'symfony/contact-everyone-notifier'];
144147
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;
@@ -74,6 +75,7 @@ final class Transport
7475
private const FACTORY_CLASSES = [
7576
AllMySmsTransportFactory::class,
7677
AmazonSnsTransportFactory::class,
78+
BandwidthTransportFactory::class,
7779
ChatworkTransportFactory::class,
7880
ClickatellTransportFactory::class,
7981
ContactEveryoneTransportFactory::class,

0 commit comments

Comments
 (0)