Skip to content

Commit

Permalink
[Notifier] Add Smsmode bridge
Browse files Browse the repository at this point in the history
  • Loading branch information
gnito-org authored and nicolas-grekas committed May 12, 2023
1 parent 501d604 commit a30aee1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Exception/UnsupportedSchemeException.php
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,10 @@ class UnsupportedSchemeException extends LogicException
'class' => Bridge\SmsFactor\SmsFactorTransportFactory::class,
'package' => 'symfony/sms-factor-notifier',
],
'smsmode' => [
'class' => Bridge\Smsmode\SmsmodeTransportFactory::class,
'package' => 'symfony/smsmode-notifier',
],
'sns' => [
'class' => Bridge\AmazonSns\AmazonSnsTransportFactory::class,
'package' => 'symfony/amazon-sns-notifier',
Expand Down
2 changes: 2 additions & 0 deletions Tests/Exception/UnsupportedSchemeExceptionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ public static function setUpBeforeClass(): void
Bridge\SmsBiuras\SmsBiurasTransportFactory::class => false,
Bridge\Smsc\SmscTransportFactory::class => false,
Bridge\SmsFactor\SmsFactorTransportFactory::class => false,
Bridge\Smsmode\SmsmodeTransportFactory::class => false,
Bridge\SpotHit\SpotHitTransportFactory::class => false,
Bridge\Telegram\TelegramTransportFactory::class => false,
Bridge\Telnyx\TelnyxTransportFactory::class => false,
Expand Down Expand Up @@ -153,6 +154,7 @@ public static function messageWhereSchemeIsPartOfSchemeToPackageMapProvider(): \
yield ['smsbiuras', 'symfony/sms-biuras-notifier'];
yield ['smsc', 'symfony/smsc-notifier'];
yield ['sms-factor', 'symfony/sms-factor-notifier'];
yield ['smsmode', 'symfony/smsmode-notifier'];
yield ['spothit', 'symfony/spot-hit-notifier'];
yield ['telegram', 'symfony/telegram-notifier'];
yield ['telnyx', 'symfony/telnyx-notifier'];
Expand Down
1 change: 1 addition & 0 deletions Transport.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ final class Transport
Bridge\SmsBiuras\SmsBiurasTransportFactory::class,
Bridge\Smsc\SmscTransportFactory::class,
Bridge\SmsFactor\SmsFactorTransportFactory::class,
Bridge\Smsmode\SmsmodeTransportFactory::class,
Bridge\SpotHit\SpotHitTransportFactory::class,
Bridge\Telegram\TelegramTransportFactory::class,
Bridge\Telnyx\TelnyxTransportFactory::class,
Expand Down

0 comments on commit a30aee1

Please sign in to comment.