* small changes
This commit is contained in:
parent
febff4613d
commit
9e1809e6ae
@ -110,7 +110,7 @@ final class LightSmsTransport extends AbstractTransport
|
|||||||
|
|
||||||
$this->message = $message;
|
$this->message = $message;
|
||||||
|
|
||||||
$signature = $this->getSignature();
|
$signature = $this->generateSignature();
|
||||||
|
|
||||||
$endpoint = sprintf(
|
$endpoint = sprintf(
|
||||||
'https://%s?login=%s&signature=%s&phone=%s&text=%s&sender=%s×tamp=%s',
|
'https://%s?login=%s&signature=%s&phone=%s&text=%s&sender=%s×tamp=%s',
|
||||||
@ -144,7 +144,7 @@ final class LightSmsTransport extends AbstractTransport
|
|||||||
return $sentMessage;
|
return $sentMessage;
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getSignature(): string
|
private function generateSignature(): string
|
||||||
{
|
{
|
||||||
$params = [
|
$params = [
|
||||||
'timestamp' => time(),
|
'timestamp' => time(),
|
||||||
|
@ -34,7 +34,7 @@ final class LightSmsTransportFactory extends AbstractTransportFactory
|
|||||||
|
|
||||||
$login = $this->getUser($dsn);
|
$login = $this->getUser($dsn);
|
||||||
$token = $this->getPassword($dsn);
|
$token = $this->getPassword($dsn);
|
||||||
$phone = $dsn->getOption('phone');
|
$phone = $dsn->getRequiredOption('phone');
|
||||||
|
|
||||||
$host = 'default' === $dsn->getHost() ? null : $dsn->getHost();
|
$host = 'default' === $dsn->getHost() ? null : $dsn->getHost();
|
||||||
$port = $dsn->getPort();
|
$port = $dsn->getPort();
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "symfony/lightsms-notifier",
|
"name": "symfony/lightsms-notifier",
|
||||||
"type": "symfony-bridge",
|
"type": "symfony-bridge",
|
||||||
"description": "Symfony LightSms Notifier Bridge",
|
"description": "Symfony LightSms Notifier Bridge",
|
||||||
"keywords": ["sms", "LightSms", "notifier"],
|
"keywords": ["sms", "light-sms", "notifier"],
|
||||||
"homepage": "https://symfony.com",
|
"homepage": "https://symfony.com",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"authors": [
|
"authors": [
|
||||||
|
Reference in New Issue
Block a user