Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit16a4681

Browse files
committed
minor#51376 [Notifier] rename GoIP notifier bridge to GoIp (xabbuh)
This PR was merged into the 6.4 branch.Discussion----------[Notifier] rename GoIP notifier bridge to GoIp| Q | A| ------------- | ---| Branch? | 6.4| Bug fix? | no| New feature? | no| Deprecations? | no| Tickets || License | MIT| Doc PR |Let's be consistent in naming our bridges.Commits-------c2feb5e rename GoIP notifier bridge to GopIp
2 parents6141656 +c2feb5e commit16a4681

File tree

11 files changed

+29
-29
lines changed

11 files changed

+29
-29
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2799,7 +2799,7 @@ private function registerNotifierConfiguration(array $config, ContainerBuilder $
27992799
NotifierBridge\FreeMobile\FreeMobileTransportFactory::class =>'notifier.transport_factory.free-mobile',
28002800
NotifierBridge\GatewayApi\GatewayApiTransportFactory::class =>'notifier.transport_factory.gateway-api',
28012801
NotifierBridge\Gitter\GitterTransportFactory::class =>'notifier.transport_factory.gitter',
2802-
NotifierBridge\GoIP\GoIPTransportFactory::class =>'notifier.transport_factory.goip',
2802+
NotifierBridge\GoIp\GoIpTransportFactory::class =>'notifier.transport_factory.goip',
28032803
NotifierBridge\GoogleChat\GoogleChatTransportFactory::class =>'notifier.transport_factory.google-chat',
28042804
NotifierBridge\Infobip\InfobipTransportFactory::class =>'notifier.transport_factory.infobip',
28052805
NotifierBridge\Iqsms\IqsmsTransportFactory::class =>'notifier.transport_factory.iqsms',

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@
303303
->set('notifier.transport_factory.redlink',Bridge\Redlink\RedlinkTransportFactory::class)
304304
->parent('notifier.transport_factory.abstract')
305305
->tag('texter.transport_factory')
306-
->set('notifier.transport_factory.goip',Bridge\GoIP\GoIPTransportFactory::class)
306+
->set('notifier.transport_factory.goip',Bridge\GoIp\GoIpTransportFactory::class)
307307
->parent('notifier.transport_factory.abstract')
308308
->tag('texter.transport_factory')
309309
;

‎src/Symfony/Component/Notifier/Bridge/GoIP/GoIPOptions.phprenamed to‎src/Symfony/Component/Notifier/Bridge/GoIP/GoIpOptions.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespaceSymfony\Component\Notifier\Bridge\GoIP;
12+
namespaceSymfony\Component\Notifier\Bridge\GoIp;
1313

1414
useSymfony\Component\Notifier\Message\MessageOptionsInterface;
1515

1616
/**
1717
* @author Ahmed Ghanem <ahmedghanem7361@gmail.com>
1818
*/
19-
finalclassGoIPOptionsimplements MessageOptionsInterface
19+
finalclassGoIpOptionsimplements MessageOptionsInterface
2020
{
2121
privatearray$options = [];
2222

‎src/Symfony/Component/Notifier/Bridge/GoIP/GoIPTransport.phprenamed to‎src/Symfony/Component/Notifier/Bridge/GoIP/GoIpTransport.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespaceSymfony\Component\Notifier\Bridge\GoIP;
12+
namespaceSymfony\Component\Notifier\Bridge\GoIp;
1313

1414
useSymfony\Component\Notifier\Exception\LogicException;
1515
useSymfony\Component\Notifier\Exception\TransportException;
@@ -28,7 +28,7 @@
2828
/**
2929
* @author Ahmed Ghanem <ahmedghanem7361@gmail.com>
3030
*/
31-
finalclassGoIPTransportextends AbstractTransport
31+
finalclassGoIpTransportextends AbstractTransport
3232
{
3333
publicfunction__construct(
3434
privatereadonlystring$username,
@@ -48,7 +48,7 @@ public function __toString(): string
4848

4949
publicfunctionsupports(MessageInterface$message):bool
5050
{
51-
return$messageinstanceof SmsMessage && (null ===$message->getOptions() ||$message->getOptions()instanceofGoIPOptions);
51+
return$messageinstanceof SmsMessage && (null ===$message->getOptions() ||$message->getOptions()instanceofGoIpOptions);
5252
}
5353

5454
/**
@@ -63,8 +63,8 @@ protected function doSend(MessageInterface $message): SentMessage
6363
thrownewUnsupportedMessageTypeException(__CLASS__, SmsMessage::class,$message);
6464
}
6565

66-
if (($options =$message->getOptions()) && !$optionsinstanceofGoIPOptions) {
67-
thrownewLogicException(sprintf('The "%s" transport only supports an instance of the "%s" as an option class.',__CLASS__,GoIPOptions::class));
66+
if (($options =$message->getOptions()) && !$optionsinstanceofGoIpOptions) {
67+
thrownewLogicException(sprintf('The "%s" transport only supports an instance of the "%s" as an option class.',__CLASS__,GoIpOptions::class));
6868
}
6969

7070
if ('' !==$message->getFrom()) {

‎src/Symfony/Component/Notifier/Bridge/GoIP/GoIPTransportFactory.phprenamed to‎src/Symfony/Component/Notifier/Bridge/GoIP/GoIpTransportFactory.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespaceSymfony\Component\Notifier\Bridge\GoIP;
12+
namespaceSymfony\Component\Notifier\Bridge\GoIp;
1313

1414
useSymfony\Component\Notifier\Exception\InvalidArgumentException;
1515
useSymfony\Component\Notifier\Exception\UnsupportedSchemeException;
@@ -19,11 +19,11 @@
1919
/**
2020
* @author Ahmed Ghanem <ahmedghanem7361@gmail.com>
2121
*/
22-
finalclassGoIPTransportFactoryextends AbstractTransportFactory
22+
finalclassGoIpTransportFactoryextends AbstractTransportFactory
2323
{
2424
privateconstSCHEME_NAME ='goip';
2525

26-
publicfunctioncreate(Dsn$dsn):GoIPTransport
26+
publicfunctioncreate(Dsn$dsn):GoIpTransport
2727
{
2828
if (self::SCHEME_NAME !==$dsn->getScheme()) {
2929
thrownewUnsupportedSchemeException($dsn,self::SCHEME_NAME,$this->getSupportedSchemes());
@@ -36,7 +36,7 @@ public function create(Dsn $dsn): GoIPTransport
3636
thrownewInvalidArgumentException(sprintf('The provided SIM-Slot: "%s" is not valid.',$simSlot));
3737
}
3838

39-
return (newGoIPTransport($username,$password,$simSlot,$this->client,$this->dispatcher))
39+
return (newGoIpTransport($username,$password,$simSlot,$this->client,$this->dispatcher))
4040
->setHost($dsn->getHost())
4141
->setPort($dsn->getPort());
4242
}

‎src/Symfony/Component/Notifier/Bridge/GoIP/Tests/GoIPTransportFactoryTest.phprenamed to‎src/Symfony/Component/Notifier/Bridge/GoIP/Tests/GoIpTransportFactoryTest.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespaceSymfony\Component\Notifier\Bridge\GoIP\Tests;
12+
namespaceSymfony\Component\Notifier\Bridge\GoIp\Tests;
1313

14-
useSymfony\Component\Notifier\Bridge\GoIP\GoIPTransportFactory;
14+
useSymfony\Component\Notifier\Bridge\GoIp\GoIpTransportFactory;
1515
useSymfony\Component\Notifier\Test\TransportFactoryTestCase;
1616

1717
/**
1818
* @author Ahmed Ghanem <ahmedghanem7361@gmail.com>
1919
*/
20-
finalclassGoIPTransportFactoryTestextends TransportFactoryTestCase
20+
finalclassGoIpTransportFactoryTestextends TransportFactoryTestCase
2121
{
2222
publicstaticfunctioncreateProvider():iterable
2323
{
@@ -48,8 +48,8 @@ public static function missingRequiredOptionProvider(): iterable
4848
yield'missing required option: sim_slot' => ['goip://user:pass@host.test'];
4949
}
5050

51-
publicfunctioncreateFactory():GoIPTransportFactory
51+
publicfunctioncreateFactory():GoIpTransportFactory
5252
{
53-
returnnewGoIPTransportFactory();
53+
returnnewGoIpTransportFactory();
5454
}
5555
}

‎src/Symfony/Component/Notifier/Bridge/GoIP/Tests/GoIPTransportTest.phprenamed to‎src/Symfony/Component/Notifier/Bridge/GoIP/Tests/GoIpTransportTest.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
* file that was distributed with this source code.
1010
*/
1111

12-
namespaceSymfony\Component\Notifier\Bridge\GoIP\Tests;
12+
namespaceSymfony\Component\Notifier\Bridge\GoIp\Tests;
1313

1414
useSymfony\Component\HttpClient\MockHttpClient;
1515
useSymfony\Component\HttpClient\Response\MockResponse;
16-
useSymfony\Component\Notifier\Bridge\GoIP\GoIPOptions;
17-
useSymfony\Component\Notifier\Bridge\GoIP\GoIPTransport;
16+
useSymfony\Component\Notifier\Bridge\GoIp\GoIpOptions;
17+
useSymfony\Component\Notifier\Bridge\GoIp\GoIpTransport;
1818
useSymfony\Component\Notifier\Exception\TransportException;
1919
useSymfony\Component\Notifier\Exception\TransportExceptionInterface;
2020
useSymfony\Component\Notifier\Message\ChatMessage;
@@ -26,24 +26,24 @@
2626
/**
2727
* @author Ahmed Ghanem <ahmedghanem7361@gmail.com>
2828
*/
29-
finalclassGoIPTransportTestextends TransportTestCase
29+
finalclassGoIpTransportTestextends TransportTestCase
3030
{
3131
publicstaticfunctiontoStringProvider():iterable
3232
{
3333
yield ['goip://host.test:4000?sim_slot=4',self::createTransport()];
3434
}
3535

36-
publicstaticfunctioncreateTransport(HttpClientInterface$client =null):GoIPTransport
36+
publicstaticfunctioncreateTransport(HttpClientInterface$client =null):GoIpTransport
3737
{
38-
return (newGoIPTransport('user','pass',4,$client ??newMockHttpClient()))
38+
return (newGoIpTransport('user','pass',4,$client ??newMockHttpClient()))
3939
->setHost('host.test')
4040
->setPort(4000);
4141
}
4242

4343
publicstaticfunctionsupportedMessagesProvider():iterable
4444
{
4545
$message =newSmsMessage('0611223344','Hello!');
46-
$message->options((newGoIPOptions())->setSimSlot(3));
46+
$message->options((newGoIpOptions())->setSimSlot(3));
4747

4848
yield [$message];
4949
}

‎src/Symfony/Component/Notifier/Bridge/GoIP/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
},
2323
"autoload": {
2424
"psr-4": {
25-
"Symfony\\Component\\Notifier\\Bridge\\GoIP\\":""
25+
"Symfony\\Component\\Notifier\\Bridge\\GoIp\\":""
2626
},
2727

2828
"exclude-from-classmap": [

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ class UnsupportedSchemeException extends LogicException
9393
'package' =>'symfony/gitter-notifier',
9494
],
9595
'goip' => [
96-
'class' =>Bridge\GoIP\GoIPTransportFactory::class,
96+
'class' =>Bridge\GoIp\GoIpTransportFactory::class,
9797
'package' =>'symfony/goip-notifier',
9898
],
9999
'googlechat' => [

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ public static function setUpBeforeClass(): void
4545
Bridge\FreeMobile\FreeMobileTransportFactory::class =>false,
4646
Bridge\GatewayApi\GatewayApiTransportFactory::class =>false,
4747
Bridge\Gitter\GitterTransportFactory::class =>false,
48-
Bridge\GoIP\GoIPTransportFactory::class =>false,
48+
Bridge\GoIp\GoIpTransportFactory::class =>false,
4949
Bridge\GoogleChat\GoogleChatTransportFactory::class =>false,
5050
Bridge\Infobip\InfobipTransportFactory::class =>false,
5151
Bridge\Iqsms\IqsmsTransportFactory::class =>false,

‎src/Symfony/Component/Notifier/Transport.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ final class Transport
4747
Bridge\FreeMobile\FreeMobileTransportFactory::class,
4848
Bridge\GatewayApi\GatewayApiTransportFactory::class,
4949
Bridge\Gitter\GitterTransportFactory::class,
50-
Bridge\GoIP\GoIPTransportFactory::class,
50+
Bridge\GoIp\GoIpTransportFactory::class,
5151
Bridge\GoogleChat\GoogleChatTransportFactory::class,
5252
Bridge\Infobip\InfobipTransportFactory::class,
5353
Bridge\Iqsms\IqsmsTransportFactory::class,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp