Skip to content

Commit f35c5df

Browse files
committed
feature #42180 [Notifier] Add bridge for smsc.ru (kozlice)
This PR was merged into the 5.4 branch. Discussion ---------- [Notifier] Add bridge for smsc.ru | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | yes | Deprecations? | no | Tickets | - | License | MIT | Doc PR | symfony/symfony-docs#15536 Hi, This is a notifier bridge for Russian SMS provider [smsc](https://smsc.ru). This PR contains the new bridge and updates to framework bundle in all the places where all the other notifiers are listed. Commits ------- 1c935ce9cb [Notifier] Add bridge for smsc.ru
2 parents e844cb6 + 6ff5ccb commit f35c5df

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
@@ -144,6 +144,10 @@ class UnsupportedSchemeException extends LogicException
144144
'class' => Bridge\SmsBiuras\SmsBiurasTransportFactory::class,
145145
'package' => 'symfony/sms-biuras-notifier',
146146
],
147+
'smsc' => [
148+
'class' => Bridge\Smsc\SmscTransportFactory::class,
149+
'package' => 'symfony/smsc-notifier',
150+
],
147151
'spothit' => [
148152
'class' => Bridge\SpotHit\SpotHitTransportFactory::class,
149153
'package' => 'symfony/spot-hit-notifier',

Tests/Exception/UnsupportedSchemeExceptionTest.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@
4444
use Symfony\Component\Notifier\Bridge\Slack\SlackTransportFactory;
4545
use Symfony\Component\Notifier\Bridge\Smsapi\SmsapiTransportFactory;
4646
use Symfony\Component\Notifier\Bridge\SmsBiuras\SmsBiurasTransportFactory;
47+
use Symfony\Component\Notifier\Bridge\Smsc\SmscTransportFactory;
4748
use Symfony\Component\Notifier\Bridge\SpotHit\SpotHitTransportFactory;
4849
use Symfony\Component\Notifier\Bridge\Telegram\TelegramTransportFactory;
4950
use Symfony\Component\Notifier\Bridge\Telnyx\TelnyxTransportFactory;
@@ -92,6 +93,7 @@ public static function setUpBeforeClass(): void
9293
SlackTransportFactory::class => false,
9394
SmsapiTransportFactory::class => false,
9495
SmsBiurasTransportFactory::class => false,
96+
SmscTransportFactory::class => false,
9597
SpotHitTransportFactory::class => false,
9698
TelegramTransportFactory::class => false,
9799
TelnyxTransportFactory::class => false,
@@ -146,6 +148,7 @@ public function messageWhereSchemeIsPartOfSchemeToPackageMapProvider(): \Generat
146148
yield ['slack', 'symfony/slack-notifier'];
147149
yield ['smsapi', 'symfony/smsapi-notifier'];
148150
yield ['smsbiuras', 'symfony/sms-biuras-notifier'];
151+
yield ['smsc', 'symfony/smsc-notifier'];
149152
yield ['spothit', 'symfony/spot-hit-notifier'];
150153
yield ['telegram', 'symfony/telegram-notifier'];
151154
yield ['telnyx', 'symfony/telnyx-notifier'];

Transport.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
use Symfony\Component\Notifier\Bridge\Slack\SlackTransportFactory;
3838
use Symfony\Component\Notifier\Bridge\Smsapi\SmsapiTransportFactory;
3939
use Symfony\Component\Notifier\Bridge\SmsBiuras\SmsBiurasTransportFactory;
40+
use Symfony\Component\Notifier\Bridge\Smsc\SmscTransportFactory;
4041
use Symfony\Component\Notifier\Bridge\Telegram\TelegramTransportFactory;
4142
use Symfony\Component\Notifier\Bridge\Telnyx\TelnyxTransportFactory;
4243
use Symfony\Component\Notifier\Bridge\Twilio\TwilioTransportFactory;
@@ -84,6 +85,7 @@ class Transport
8485
SlackTransportFactory::class,
8586
SmsapiTransportFactory::class,
8687
SmsBiurasTransportFactory::class,
88+
SmscTransportFactory::class,
8789
TelegramTransportFactory::class,
8890
TelnyxTransportFactory::class,
8991
TwilioTransportFactory::class,

0 commit comments

Comments
 (0)