From a197deeed17d27e248165993bd0f4b229bee7b46 Mon Sep 17 00:00:00 2001 From: Vasilij Dusko | CREATION Date: Thu, 1 Apr 2021 13:58:54 +0300 Subject: [PATCH] * LightSmsTransport.php - better to remove if we do not have it? --- .../Component/Notifier/Bridge/LightSms/LightSmsTransport.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php b/src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php index 0735acfd64..b751172418 100644 --- a/src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php +++ b/src/Symfony/Component/Notifier/Bridge/LightSms/LightSmsTransport.php @@ -26,14 +26,13 @@ use Symfony\Contracts\HttpClient\HttpClientInterface; */ final class LightSmsTransport extends AbstractTransport { - protected const HOST = 'www.lightsms.com'; + protected const HOST = 'lightsms.com'; private $login; private $password; private $from; private const ERROR_CODES = [ - 000 => 'Service unavailable', 1 => 'Missing Signature', 2 => 'Login not specified', 3 => 'Text not specified', @@ -119,6 +118,8 @@ final class LightSmsTransport extends AbstractTransport $content = $response->toArray(false); + dump($content); die(); + // it happens if the host without www if (isset($content['']) && isset($content['']['error'])) { throw new TransportException('Unable to send the SMS: '.self::ERROR_CODES[$content['']['error']], $response);