Skip to content

Commit 3cbbc85

Browse files
Vasilij DuskoVasilij Dusko | CREATION
authored andcommitted
* HOST split into two parts
1 parent 9e1809e commit 3cbbc85

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

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

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*/
2626
final class LightSmsTransport extends AbstractTransport
2727
{
28-
protected const HOST = 'www.lightsms.com/external/get/send.php';
28+
protected const HOST = 'www.lightsms.com';
2929

3030
private $login;
3131
private $password;
@@ -78,13 +78,8 @@ final class LightSmsTransport extends AbstractTransport
7878
'39' => 'Phone number is not exist in this base',
7979
];
8080

81-
public function __construct(
82-
string $login,
83-
string $password,
84-
string $phone,
85-
HttpClientInterface $client = null,
86-
EventDispatcherInterface $dispatcher = null
87-
) {
81+
public function __construct(string $login, string $password, string $phone, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null)
82+
{
8883
$this->login = $login;
8984
$this->password = $password;
9085
$this->phone = $phone;
@@ -113,7 +108,7 @@ protected function doSend(MessageInterface $message): SentMessage
113108
$signature = $this->generateSignature();
114109

115110
$endpoint = sprintf(
116-
'https://%s?login=%s&signature=%s&phone=%s&text=%s&sender=%s&timestamp=%s',
111+
'https://%s/external/get/send.php?login=%s&signature=%s&phone=%s&text=%s&sender=%s&timestamp=%s',
117112
$this->getEndpoint(),
118113
$this->login,
119114
$signature,

src/Symfony/Component/Notifier/Bridge/LightSms/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
LightSms Notifier
2-
====================
2+
===============
33

44
Provides [LightSms](https://www.lightsms.com/) integration for Symfony Notifier.
55

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy