Skip to content
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

Merged
merged 7 commits into from
Mar 30, 2018
Merged

Resolved issue #12 #18

merged 7 commits into from
Mar 30, 2018

Conversation

vanodevium
Copy link
Contributor

@vanodevium vanodevium commented Dec 8, 2017

  • changed constructor arguments
  • added tests for custom host config
  • added documentation for customization host

! merge with squash, please

README.md Outdated
```
'smscru' => [
...
'host' => 'http://www1.smsc.kz/',
Copy link
Member

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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не очень понятно, можно подумать, что пакет автоматом переключится на этот хост, если основной не отвечает.

@@ -25,11 +25,12 @@ class SmscRuApi
/** @var string */
protected $sender;

public function __construct($login, $secret, $sender)
public function __construct($config)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

array $config

$this->login = $login;
$this->secret = $secret;
$this->sender = $sender;
$this->url = array_get($config, 'host', 'https://smsc.ru/').'sys/send.php';
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Arr::get

@Barmunksu
Copy link

merge plz!

@jhaoda jhaoda merged commit 8f94c21 into laravel-notification-channels:master Mar 30, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants