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