-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Resolved issue #12 #18
Resolved issue #12 #18
Conversation
README.md
Outdated
``` | ||
'smscru' => [ | ||
... | ||
'host' => 'http://www1.smsc.kz/', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Надо вынести в .env
.
README.md
Outdated
@@ -57,6 +57,15 @@ Add your SmscRu login, secret key (hashed password) and default sender name (or | |||
... | |||
``` | |||
|
|||
> If smsc.ru is not responding, you can set custom host WITH trailing slash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не очень понятно, можно подумать, что пакет автоматом переключится на этот хост, если основной не отвечает.
src/SmscRuApi.php
Outdated
@@ -25,11 +25,12 @@ class SmscRuApi | |||
/** @var string */ | |||
protected $sender; | |||
|
|||
public function __construct($login, $secret, $sender) | |||
public function __construct($config) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
array $config
src/SmscRuApi.php
Outdated
$this->login = $login; | ||
$this->secret = $secret; | ||
$this->sender = $sender; | ||
$this->url = array_get($config, 'host', 'https://smsc.ru/').'sys/send.php'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Arr::get
merge plz! |
! merge with squash, please