Skip to content

Navigation Menu

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

Appearance settings

Commit 58ac708

Browse filesBrowse files
author
Vasilij Dusko | CREATION
committed
* LightSmsTransport.php - return back www (without will not work). Now fail tests
1 parent b9f9ff8 commit 58ac708
Copy full SHA for 58ac708

File tree

2 files changed

+3
-3
lines changed
Filter options

2 files changed

+3
-3
lines changed

‎src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
*/
2727
final class LightSmsTransport extends AbstractTransport
2828
{
29-
protected const HOST = 'lightsms.com';
29+
protected const HOST = 'www.lightsms.com';
3030

3131
private $login;
3232
private $password;
@@ -86,7 +86,7 @@ public function __construct(string $login, string $password, string $from, HttpC
8686

8787
public function __toString(): string
8888
{
89-
return sprintf('lightsms://www.%s/external/get/send.php?from=%s', $this->getEndpoint(), $this->from);
89+
return sprintf('lightsms://%s/external/get/send.php?from=%s', $this->getEndpoint(), $this->from);
9090
}
9191

9292
public function supports(MessageInterface $message): bool

‎src/Symfony/Component/Notifier/Bridge/LightSms/Tests/LightSmsTransportFactoryTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Component/Notifier/Bridge/LightSms/Tests/LightSmsTransportFactoryTest.php
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public function createFactory(): TransportFactoryInterface
2828
public function createProvider(): iterable
2929
{
3030
yield [
31-
'lightsms://www.host.test/external/get/send.php?from=0611223344',
31+
'lightsms://host.test/external/get/send.php?from=0611223344',
3232
'lightsms://login:token@host.test?from=0611223344',
3333
];
3434
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.