Skip to content

Commit 368f661

Browse files
committed
feature #44271 [Notifier] add Vonage bridge to replace the Nexmo one (nicolas-grekas)
This PR was merged into the 5.4 branch. Discussion ---------- [Notifier] add Vonage bridge to replace the Nexmo one | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | yes | Tickets | - | License | MIT | Doc PR | - @SecondeJK from Vonage reached us on Slack to tell us that Nexmo has been bought by Vonage 2 years ago. So here we are, deprecating the nexmo bridge in favor of the vonage one. Commits ------- a3802e2547 [Notifier] add Vonage bridge to replace the Nexmo one
2 parents 461b6a8 + f1a0428 commit 368f661

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@
157157
use Symfony\Component\Notifier\Bridge\Telnyx\TelnyxTransportFactory;
158158
use Symfony\Component\Notifier\Bridge\TurboSms\TurboSmsTransport;
159159
use Symfony\Component\Notifier\Bridge\Twilio\TwilioTransportFactory;
160+
use Symfony\Component\Notifier\Bridge\Vonage\VonageTransportFactory;
160161
use Symfony\Component\Notifier\Bridge\Yunpian\YunpianTransportFactory;
161162
use Symfony\Component\Notifier\Bridge\Zulip\ZulipTransportFactory;
162163
use Symfony\Component\Notifier\Notifier;
@@ -2540,6 +2541,7 @@ private function registerNotifierConfiguration(array $config, ContainerBuilder $
25402541
TelnyxTransportFactory::class => 'notifier.transport_factory.telnyx',
25412542
TurboSmsTransport::class => 'notifier.transport_factory.turbo-sms',
25422543
TwilioTransportFactory::class => 'notifier.transport_factory.twilio',
2544+
VonageTransportFactory::class => 'notifier.transport_factory.vonage',
25432545
YunpianTransportFactory::class => 'notifier.transport_factory.yunpian',
25442546
ZulipTransportFactory::class => 'notifier.transport_factory.zulip',
25452547
];

Resources/config/notifier_transports.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
use Symfony\Component\Notifier\Bridge\Telnyx\TelnyxTransportFactory;
5353
use Symfony\Component\Notifier\Bridge\TurboSms\TurboSmsTransportFactory;
5454
use Symfony\Component\Notifier\Bridge\Twilio\TwilioTransportFactory;
55+
use Symfony\Component\Notifier\Bridge\Vonage\VonageTransportFactory;
5556
use Symfony\Component\Notifier\Bridge\Yunpian\YunpianTransportFactory;
5657
use Symfony\Component\Notifier\Bridge\Zulip\ZulipTransportFactory;
5758
use Symfony\Component\Notifier\Transport\AbstractTransportFactory;
@@ -109,6 +110,11 @@
109110
->set('notifier.transport_factory.nexmo', NexmoTransportFactory::class)
110111
->parent('notifier.transport_factory.abstract')
111112
->tag('texter.transport_factory')
113+
->deprecate('symfony/framework-bundle', '5.4', 'The "%service_id% service is deprecated, use "notifier.transport_factory.vonage" instead.')
114+
115+
->set('notifier.transport_factory.vonage', VonageTransportFactory::class)
116+
->parent('notifier.transport_factory.abstract')
117+
->tag('texter.transport_factory')
112118

113119
->set('notifier.transport_factory.rocket-chat', RocketChatTransportFactory::class)
114120
->parent('notifier.transport_factory.abstract')

0 commit comments

Comments
 (0)