Skip to content

Commit 1319dcf

Browse files
jschaedlOskarStark
authored andcommitted
[FrameworkBundle] Add missing notifier transport factories to framework extension
1 parent 83de990 commit 1319dcf

File tree

1 file changed

+37
-24
lines changed

1 file changed

+37
-24
lines changed

DependencyInjection/FrameworkExtension.php

Lines changed: 37 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,11 @@
122122
use Symfony\Component\Notifier\Bridge\GoogleChat\GoogleChatTransportFactory;
123123
use Symfony\Component\Notifier\Bridge\Infobip\InfobipTransportFactory;
124124
use Symfony\Component\Notifier\Bridge\Iqsms\IqsmsTransportFactory;
125+
use Symfony\Component\Notifier\Bridge\LightSms\LightSmsTransportFactory;
125126
use Symfony\Component\Notifier\Bridge\LinkedIn\LinkedInTransportFactory;
126127
use Symfony\Component\Notifier\Bridge\Mattermost\MattermostTransportFactory;
127128
use Symfony\Component\Notifier\Bridge\Mercure\MercureTransportFactory;
129+
use Symfony\Component\Notifier\Bridge\MessageBird\MessageBirdTransport;
128130
use Symfony\Component\Notifier\Bridge\MicrosoftTeams\MicrosoftTeamsTransportFactory;
129131
use Symfony\Component\Notifier\Bridge\Mobyt\MobytTransportFactory;
130132
use Symfony\Component\Notifier\Bridge\Nexmo\NexmoTransportFactory;
@@ -135,6 +137,7 @@
135137
use Symfony\Component\Notifier\Bridge\Sinch\SinchTransportFactory;
136138
use Symfony\Component\Notifier\Bridge\Slack\SlackTransportFactory;
137139
use Symfony\Component\Notifier\Bridge\Smsapi\SmsapiTransportFactory;
140+
use Symfony\Component\Notifier\Bridge\SmsBiuras\SmsBiurasTransportFactory;
138141
use Symfony\Component\Notifier\Bridge\SpotHit\SpotHitTransportFactory;
139142
use Symfony\Component\Notifier\Bridge\Telegram\TelegramTransportFactory;
140143
use Symfony\Component\Notifier\Bridge\Twilio\TwilioTransportFactory;
@@ -2368,47 +2371,57 @@ private function registerNotifierConfiguration(array $config, ContainerBuilder $
23682371
$container->getDefinition('notifier.channel_policy')->setArgument(0, $config['channel_policy']);
23692372

23702373
$classToServices = [
2371-
SlackTransportFactory::class => 'notifier.transport_factory.slack',
2372-
TelegramTransportFactory::class => 'notifier.transport_factory.telegram',
2373-
MattermostTransportFactory::class => 'notifier.transport_factory.mattermost',
2374-
GoogleChatTransportFactory::class => 'notifier.transport_factory.googlechat',
2375-
NexmoTransportFactory::class => 'notifier.transport_factory.nexmo',
2376-
IqsmsTransportFactory::class => 'notifier.transport_factory.iqsms',
2377-
RocketChatTransportFactory::class => 'notifier.transport_factory.rocketchat',
2378-
InfobipTransportFactory::class => 'notifier.transport_factory.infobip',
2379-
TwilioTransportFactory::class => 'notifier.transport_factory.twilio',
23802374
AllMySmsTransportFactory::class => 'notifier.transport_factory.allmysms',
2381-
FirebaseTransportFactory::class => 'notifier.transport_factory.firebase',
2382-
FreeMobileTransportFactory::class => 'notifier.transport_factory.freemobile',
2383-
SpotHitTransportFactory::class => 'notifier.transport_factory.spothit',
2375+
ClickatellTransportFactory::class => 'notifier.transport_factory.clickatell',
2376+
DiscordTransportFactory::class => 'notifier.transport_factory.discord',
2377+
EsendexTransportFactory::class => 'notifier.transport_factory.esendex',
23842378
FakeChatTransportFactory::class => 'notifier.transport_factory.fakechat',
23852379
FakeSmsTransportFactory::class => 'notifier.transport_factory.fakesms',
2386-
OvhCloudTransportFactory::class => 'notifier.transport_factory.ovhcloud',
2387-
SinchTransportFactory::class => 'notifier.transport_factory.sinch',
2388-
ZulipTransportFactory::class => 'notifier.transport_factory.zulip',
2389-
MobytTransportFactory::class => 'notifier.transport_factory.mobyt',
2390-
SmsapiTransportFactory::class => 'notifier.transport_factory.smsapi',
2391-
EsendexTransportFactory::class => 'notifier.transport_factory.esendex',
2392-
SendinblueNotifierTransportFactory::class => 'notifier.transport_factory.sendinblue',
2393-
DiscordTransportFactory::class => 'notifier.transport_factory.discord',
2394-
LinkedInTransportFactory::class => 'notifier.transport_factory.linkedin',
2380+
FirebaseTransportFactory::class => 'notifier.transport_factory.firebase',
2381+
FreeMobileTransportFactory::class => 'notifier.transport_factory.freemobile',
23952382
GatewayApiTransportFactory::class => 'notifier.transport_factory.gatewayapi',
2396-
OctopushTransportFactory::class => 'notifier.transport_factory.octopush',
2397-
MercureTransportFactory::class => 'notifier.transport_factory.mercure',
23982383
GitterTransportFactory::class => 'notifier.transport_factory.gitter',
2399-
ClickatellTransportFactory::class => 'notifier.transport_factory.clickatell',
2384+
GoogleChatTransportFactory::class => 'notifier.transport_factory.googlechat',
2385+
InfobipTransportFactory::class => 'notifier.transport_factory.infobip',
2386+
IqsmsTransportFactory::class => 'notifier.transport_factory.iqsms',
2387+
LightSmsTransportFactory::class => 'notifier.transport_factory.lightsms',
2388+
LinkedInTransportFactory::class => 'notifier.transport_factory.linkedin',
2389+
MattermostTransportFactory::class => 'notifier.transport_factory.mattermost',
2390+
MercureTransportFactory::class => 'notifier.transport_factory.mercure',
2391+
MessageBirdTransport::class => 'notifier.transport_factory.messagebird',
24002392
MicrosoftTeamsTransportFactory::class => 'notifier.transport_factory.microsoftteams',
2393+
MobytTransportFactory::class => 'notifier.transport_factory.mobyt',
2394+
NexmoTransportFactory::class => 'notifier.transport_factory.nexmo',
2395+
OctopushTransportFactory::class => 'notifier.transport_factory.octopush',
2396+
OvhCloudTransportFactory::class => 'notifier.transport_factory.ovhcloud',
2397+
RocketChatTransportFactory::class => 'notifier.transport_factory.rocketchat',
2398+
SendinblueNotifierTransportFactory::class => 'notifier.transport_factory.sendinblue',
2399+
SinchTransportFactory::class => 'notifier.transport_factory.sinch',
2400+
SlackTransportFactory::class => 'notifier.transport_factory.slack',
2401+
SmsapiTransportFactory::class => 'notifier.transport_factory.smsapi',
2402+
SmsBiurasTransportFactory::class => 'notifier.transport_factory.smsbiuras',
2403+
SpotHitTransportFactory::class => 'notifier.transport_factory.spothit',
2404+
TelegramTransportFactory::class => 'notifier.transport_factory.telegram',
2405+
TwilioTransportFactory::class => 'notifier.transport_factory.twilio',
2406+
ZulipTransportFactory::class => 'notifier.transport_factory.zulip',
24012407
];
24022408

24032409
$parentPackages = ['symfony/framework-bundle', 'symfony/notifier'];
24042410

24052411
foreach ($classToServices as $class => $service) {
24062412
switch ($package = substr($service, \strlen('notifier.transport_factory.'))) {
2413+
case 'fakechat': $package = 'fake-chat'; break;
2414+
case 'fakesms': $package = 'fake-sms'; break;
24072415
case 'freemobile': $package = 'free-mobile'; break;
24082416
case 'googlechat': $package = 'google-chat'; break;
2417+
case 'lightsms': $package = 'light-sms'; break;
24092418
case 'linkedin': $package = 'linked-in'; break;
2419+
case 'messagebird': $package = 'message-bird'; break;
2420+
case 'microsoftteams': $package = 'microsoft-teams'; break;
24102421
case 'ovhcloud': $package = 'ovh-cloud'; break;
24112422
case 'rocketchat': $package = 'rocket-chat'; break;
2423+
case 'smsbiuras': $package = 'sms-biuras'; break;
2424+
case 'spothit': $package = 'spot-hit'; break;
24122425
}
24132426

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

0 commit comments

Comments
 (0)