Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8113ca9

Browse files
committed
[Notifier] Fix package name
1 parent d408428 commit 8113ca9

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

src/Symfony/Bundle/FrameworkBundle/DependencyInjection/FrameworkExtension.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2421,15 +2421,15 @@ private function registerNotifierConfiguration(array $config, ContainerBuilder $
24212421
$container->getDefinition('notifier.channel_policy')->setArgument(0, $config['channel_policy']);
24222422

24232423
$classToServices = [
2424-
AllMySmsTransportFactory::class => 'notifier.transport_factory.allmysms',
2424+
AllMySmsTransportFactory::class => 'notifier.transport_factory.all-my-sms',
24252425
ClickatellTransportFactory::class => 'notifier.transport_factory.clickatell',
24262426
DiscordTransportFactory::class => 'notifier.transport_factory.discord',
24272427
EsendexTransportFactory::class => 'notifier.transport_factory.esendex',
24282428
FakeChatTransportFactory::class => 'notifier.transport_factory.fakechat',
24292429
FakeSmsTransportFactory::class => 'notifier.transport_factory.fakesms',
24302430
FirebaseTransportFactory::class => 'notifier.transport_factory.firebase',
24312431
FreeMobileTransportFactory::class => 'notifier.transport_factory.freemobile',
2432-
GatewayApiTransportFactory::class => 'notifier.transport_factory.gatewayapi',
2432+
GatewayApiTransportFactory::class => 'notifier.transport_factory.gateway-api',
24332433
GitterTransportFactory::class => 'notifier.transport_factory.gitter',
24342434
GoogleChatTransportFactory::class => 'notifier.transport_factory.googlechat',
24352435
InfobipTransportFactory::class => 'notifier.transport_factory.infobip',

src/Symfony/Bundle/FrameworkBundle/Resources/config/notifier_transports.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
->parent('notifier.transport_factory.abstract')
8686
->tag('texter.transport_factory')
8787

88-
->set('notifier.transport_factory.allmysms', AllMySmsTransportFactory::class)
88+
->set('notifier.transport_factory.all-my-sms', AllMySmsTransportFactory::class)
8989
->parent('notifier.transport_factory.abstract')
9090
->tag('texter.transport_factory')
9191

@@ -157,7 +157,7 @@
157157
->parent('notifier.transport_factory.abstract')
158158
->tag('chatter.transport_factory')
159159

160-
->set('notifier.transport_factory.gatewayapi', GatewayApiTransportFactory::class)
160+
->set('notifier.transport_factory.gateway-api', GatewayApiTransportFactory::class)
161161
->parent('notifier.transport_factory.abstract')
162162
->tag('texter.transport_factory')
163163

src/Symfony/Component/Notifier/Bridge/AllMySms/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "symfony/allmysms-notifier",
2+
"name": "symfony/all-my-sms-notifier",
33
"type": "symfony-bridge",
44
"description": "Symfony AllMySms Notifier Bridge",
55
"keywords": ["sms", "allMySms", "notifier"],

src/Symfony/Component/Notifier/Bridge/GatewayApi/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "symfony/gatewayapi-notifier",
2+
"name": "symfony/gateway-api-notifier",
33
"type": "symfony-bridge",
44
"description": "Symfony GatewayApi Notifier Bridge",
55
"keywords": ["sms", "gatewayapi", "notifier"],

src/Symfony/Component/Notifier/Exception/UnsupportedSchemeException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ class UnsupportedSchemeException extends LogicException
2222
private const SCHEME_TO_PACKAGE_MAP = [
2323
'allmysms' => [
2424
'class' => Bridge\AllMySms\AllMySmsTransportFactory::class,
25-
'package' => 'symfony/allmysms-notifier',
25+
'package' => 'symfony/all-my-sms-notifier',
2626
],
2727
'clickatell' => [
2828
'class' => Bridge\Clickatell\ClickatellTransportFactory::class,
@@ -54,7 +54,7 @@ class UnsupportedSchemeException extends LogicException
5454
],
5555
'gatewayapi' => [
5656
'class' => Bridge\GatewayApi\GatewayApiTransportFactory::class,
57-
'package' => 'symfony/gatewayapi-notifier',
57+
'package' => 'symfony/gateway-api-notifier',
5858
],
5959
'gitter' => [
6060
'class' => Bridge\Gitter\GitterTransportFactory::class,

src/Symfony/Component/Notifier/Tests/Exception/UnsupportedSchemeExceptionTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,15 +109,15 @@ public function testMessageWhereSchemeIsPartOfSchemeToPackageMap(string $scheme,
109109

110110
public function messageWhereSchemeIsPartOfSchemeToPackageMapProvider(): \Generator
111111
{
112-
yield ['allmysms', 'symfony/allmysms-notifier'];
112+
yield ['allmysms', 'symfony/all-my-sms-notifier'];
113113
yield ['clickatell', 'symfony/clickatell-notifier'];
114114
yield ['discord', 'symfony/discord-notifier'];
115115
yield ['esendex', 'symfony/esendex-notifier'];
116116
yield ['fakechat', 'symfony/fake-chat-notifier'];
117117
yield ['fakesms', 'symfony/fake-sms-notifier'];
118118
yield ['firebase', 'symfony/firebase-notifier'];
119119
yield ['freemobile', 'symfony/free-mobile-notifier'];
120-
yield ['gatewayapi', 'symfony/gatewayapi-notifier'];
120+
yield ['gatewayapi', 'symfony/gateway-api-notifier'];
121121
yield ['gitter', 'symfony/gitter-notifier'];
122122
yield ['googlechat', 'symfony/google-chat-notifier'];
123123
yield ['infobip', 'symfony/infobip-notifier'];

0 commit comments

Comments
 (0)