diff --git a/src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php b/src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php index 94d67448e6..5d6a6f1b06 100644 --- a/src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php @@ -25,7 +25,7 @@ use Symfony\Contracts\HttpClient\HttpClientInterface; */ final class LightSmsTransport extends AbstractTransport { - protected const HOST = 'www.lightsms.com/external/get/send.php'; + protected const HOST = 'www.lightsms.com'; private $login; private $password; @@ -78,13 +78,8 @@ final class LightSmsTransport extends AbstractTransport '39' => 'Phone number is not exist in this base', ]; - public function __construct( - string $login, - string $password, - string $phone, - HttpClientInterface $client = null, - EventDispatcherInterface $dispatcher = null - ) { + public function __construct(string $login, string $password, string $phone, HttpClientInterface $client = null, EventDispatcherInterface $dispatcher = null) + { $this->login = $login; $this->password = $password; $this->phone = $phone; @@ -113,7 +108,7 @@ final class LightSmsTransport extends AbstractTransport $signature = $this->generateSignature(); $endpoint = sprintf( - 'https://%s?login=%s&signature=%s&phone=%s&text=%s&sender=%s×tamp=%s', + 'https://%s/external/get/send.php?login=%s&signature=%s&phone=%s&text=%s&sender=%s×tamp=%s', $this->getEndpoint(), $this->login, $signature, diff --git a/src/Symfony/Component/Notifier/Bridge/LightSms/README.md b/src/Symfony/Component/Notifier/Bridge/LightSms/README.md index cea0c5d4ec..98c301ec83 100644 --- a/src/Symfony/Component/Notifier/Bridge/LightSms/README.md +++ b/src/Symfony/Component/Notifier/Bridge/LightSms/README.md @@ -1,5 +1,5 @@ LightSms Notifier -==================== +=============== Provides [LightSms](https://www.lightsms.com/) integration for Symfony Notifier.