Skip to content

Commit a197dee

Browse files
author
Vasilij Dusko | CREATION
committed
* LightSmsTransport.php - better to remove if we do not have it?
1 parent 83d2598 commit a197dee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,13 @@
2626
*/
2727
final class LightSmsTransport extends AbstractTransport
2828
{
29-
protected const HOST = 'www.lightsms.com';
29+
protected const HOST = 'lightsms.com';
3030

3131
private $login;
3232
private $password;
3333
private $from;
3434

3535
private const ERROR_CODES = [
36-
000 => 'Service unavailable',
3736
1 => 'Missing Signature',
3837
2 => 'Login not specified',
3938
3 => 'Text not specified',
@@ -119,6 +118,8 @@ protected function doSend(MessageInterface $message): SentMessage
119118

120119
$content = $response->toArray(false);
121120

121+
dump($content); die();
122+
122123
// it happens if the host without www
123124
if (isset($content['']) && isset($content['']['error'])) {
124125
throw new TransportException('Unable to send the SMS: '.self::ERROR_CODES[$content['']['error']], $response);

0 commit comments

Comments
 (0)