Skip to content

Commit

Permalink
Merge pull request #22 from dragonmantank/update-nexmo-sdk
Browse files Browse the repository at this point in the history
Update to use newest version of nexmo/laravel
  • Loading branch information
taylorotwell authored Sep 18, 2019
2 parents a204f32 + dd34051 commit b964ec3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"require": {
"php": "^7.1.3",
"illuminate/notifications": "~5.8.0|^6.0|^7.0",
"nexmo/client": "^1.0|^2.0"
"nexmo/laravel": "^2.0"
},
"require-dev": {
"mockery/mockery": "^1.0",
Expand Down
6 changes: 1 addition & 5 deletions src/NexmoChannelServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
use Illuminate\Support\Facades\Notification;
use Illuminate\Support\ServiceProvider;
use Nexmo\Client as NexmoClient;
use Nexmo\Client\Credentials\Basic as NexmoCredentials;

class NexmoChannelServiceProvider extends ServiceProvider
{
Expand All @@ -19,10 +18,7 @@ public function register()
Notification::resolved(function (ChannelManager $service) {
$service->extend('nexmo', function ($app) {
return new Channels\NexmoSmsChannel(
new NexmoClient(new NexmoCredentials(
$this->app['config']['services.nexmo.key'],
$this->app['config']['services.nexmo.secret']
)),
$this->app->make(NexmoClient::class),
$this->app['config']['services.nexmo.sms_from']
);
});
Expand Down

0 comments on commit b964ec3

Please sign in to comment.