File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
src/Symfony/Component/Notifier/Bridge/LightSms Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 26
26
*/
27
27
final class LightSmsTransport extends AbstractTransport
28
28
{
29
- protected const HOST = 'www. lightsms.com ' ;
29
+ protected const HOST = 'lightsms.com ' ;
30
30
31
31
private $ login ;
32
32
private $ password ;
33
33
private $ from ;
34
34
35
35
private const ERROR_CODES = [
36
- 000 => 'Service unavailable ' ,
37
36
1 => 'Missing Signature ' ,
38
37
2 => 'Login not specified ' ,
39
38
3 => 'Text not specified ' ,
@@ -119,6 +118,8 @@ protected function doSend(MessageInterface $message): SentMessage
119
118
120
119
$ content = $ response ->toArray (false );
121
120
121
+ dump ($ content ); die ();
122
+
122
123
// it happens if the host without www
123
124
if (isset ($ content ['' ]) && isset ($ content ['' ]['error ' ])) {
124
125
throw new TransportException ('Unable to send the SMS: ' .self ::ERROR_CODES [$ content ['' ]['error ' ]], $ response );
You can’t perform that action at this time.
0 commit comments