Skip to content

Commit 58ac708

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

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

+2-2
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

+1-1
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)