Skip to content

Commit

Permalink
Merge branch 'release/v0.3.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
leeovery committed Mar 10, 2020
2 parents 84b2d61 + 81f3211 commit 534c59c
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .phpunit.result.cache
Original file line number Diff line number Diff line change
@@ -1 +1 @@
C:37:"PHPUnit\Runner\DefaultTestResultCache":212:{a:2:{s:7:"defects";a:1:{s:70:"Leeovery\LaravelSendInBlue\Tests\MailSendInBlueTransportTest::testSend";i:3;}s:5:"times";a:1:{s:70:"Leeovery\LaravelSendInBlue\Tests\MailSendInBlueTransportTest::testSend";d:0.093;}}}
C:37:"PHPUnit\Runner\DefaultTestResultCache":212:{a:2:{s:7:"defects";a:1:{s:70:"Leeovery\LaravelSendInBlue\Tests\MailSendInBlueTransportTest::testSend";i:3;}s:5:"times";a:1:{s:70:"Leeovery\LaravelSendInBlue\Tests\MailSendInBlueTransportTest::testSend";d:0.158;}}}
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"php": "^7.4",
"guzzlehttp/guzzle": "^6.3",
"illuminate/support": "^6.0|^7.0",
"illuminate/mail": "^7.0",
"sendinblue/api-v3-sdk": "^6.1"
},
"require-dev": {
Expand Down
5 changes: 3 additions & 2 deletions src/LaravelSendInBlueServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
namespace Leeovery\LaravelSendInBlue;

use Illuminate\Support\Arr;
use Illuminate\Mail\MailManager;
use SendinBlue\Client\Api\SMTPApi;
use GuzzleHttp\Client as HttpClient;
use SendinBlue\Client\Configuration;
Expand All @@ -15,8 +16,8 @@ class LaravelSendInBlueServiceProvider extends ServiceProvider
*/
public function boot()
{
$this->app['swift.transport']->extend('sendinblue', function ($app) {
return $app->make('laravel-sendinblue');
$this->app[MailManager::class]->extend('sendinblue', function () {
return $this->app->make('laravel-sendinblue');
});
}

Expand Down

0 comments on commit 534c59c

Please sign in to comment.