* small changes

This commit is contained in:
Vasilij Dusko 2021-03-28 15:49:43 +03:00 committed by Vasilij Dusko | CREATION
parent febff4613d
commit 9e1809e6ae
4 changed files with 6 additions and 6 deletions

View File

@ -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')
;
};

View File

@ -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&timestamp=%s',
@ -144,7 +144,7 @@ final class LightSmsTransport extends AbstractTransport
return $sentMessage;
}
private function getSignature(): string
private function generateSignature(): string
{
$params = [
'timestamp' => time(),

View File

@ -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();

View File

@ -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": [