Skip to content

Commit e04b0f3

Browse files
fre5hOskarStark
authored andcommitted
[Notifier] Add TurboSms Bridge
1 parent eac054a commit e04b0f3

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@
145145
use Symfony\Component\Notifier\Bridge\SpotHit\SpotHitTransportFactory;
146146
use Symfony\Component\Notifier\Bridge\Telegram\TelegramTransportFactory;
147147
use Symfony\Component\Notifier\Bridge\Telnyx\TelnyxTransportFactory;
148+
use Symfony\Component\Notifier\Bridge\TurboSms\TurboSmsTransport;
148149
use Symfony\Component\Notifier\Bridge\Twilio\TwilioTransportFactory;
149150
use Symfony\Component\Notifier\Bridge\Yunpian\YunpianTransportFactory;
150151
use Symfony\Component\Notifier\Bridge\Zulip\ZulipTransportFactory;
@@ -2462,6 +2463,7 @@ private function registerNotifierConfiguration(array $config, ContainerBuilder $
24622463
SpotHitTransportFactory::class => 'notifier.transport_factory.spothit',
24632464
TelegramTransportFactory::class => 'notifier.transport_factory.telegram',
24642465
TelnyxTransportFactory::class => 'notifier.transport_factory.telnyx',
2466+
TurboSmsTransport::class => 'notifier.transport_factory.turbosms',
24652467
TwilioTransportFactory::class => 'notifier.transport_factory.twilio',
24662468
YunpianTransportFactory::class => 'notifier.transport_factory.yunpian',
24672469
ZulipTransportFactory::class => 'notifier.transport_factory.zulip',
@@ -2485,6 +2487,7 @@ private function registerNotifierConfiguration(array $config, ContainerBuilder $
24852487
case 'rocketchat': $package = 'rocket-chat'; break;
24862488
case 'smsbiuras': $package = 'sms-biuras'; break;
24872489
case 'spothit': $package = 'spot-hit'; break;
2490+
case 'turbosms': $package = 'turbo-sms'; break;
24882491
}
24892492

24902493
if (!ContainerBuilder::willBeAvailable(sprintf('symfony/%s-notifier', $package), $class, $parentPackages)) {

Resources/config/notifier_transports.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
use Symfony\Component\Notifier\Bridge\SpotHit\SpotHitTransportFactory;
4848
use Symfony\Component\Notifier\Bridge\Telegram\TelegramTransportFactory;
4949
use Symfony\Component\Notifier\Bridge\Telnyx\TelnyxTransportFactory;
50+
use Symfony\Component\Notifier\Bridge\TurboSms\TurboSmsTransportFactory;
5051
use Symfony\Component\Notifier\Bridge\Twilio\TwilioTransportFactory;
5152
use Symfony\Component\Notifier\Bridge\Yunpian\YunpianTransportFactory;
5253
use Symfony\Component\Notifier\Bridge\Zulip\ZulipTransportFactory;
@@ -220,5 +221,9 @@
220221
->set('notifier.transport_factory.yunpian', YunpianTransportFactory::class)
221222
->parent('notifier.transport_factory.abstract')
222223
->tag('texter.transport_factory')
224+
225+
->set('notifier.transport_factory.turbosms', TurboSmsTransportFactory::class)
226+
->parent('notifier.transport_factory.abstract')
227+
->tag('texter.transport_factory')
223228
;
224229
};

0 commit comments

Comments
 (0)