From 81f32118061e2add12b9253ceed54cfc5b456265 Mon Sep 17 00:00:00 2001 From: Lee Overy Date: Tue, 10 Mar 2020 19:02:34 +0000 Subject: [PATCH] WIP --- .phpunit.result.cache | 2 +- composer.json | 1 + src/LaravelSendInBlueServiceProvider.php | 5 +++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.phpunit.result.cache b/.phpunit.result.cache index cdadde7..a0aa5db 100644 --- a/.phpunit.result.cache +++ b/.phpunit.result.cache @@ -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;}}} \ No newline at end of file +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;}}} \ No newline at end of file diff --git a/composer.json b/composer.json index f74ac7c..80ac204 100755 --- a/composer.json +++ b/composer.json @@ -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": { diff --git a/src/LaravelSendInBlueServiceProvider.php b/src/LaravelSendInBlueServiceProvider.php index 20d7ab8..e080c78 100755 --- a/src/LaravelSendInBlueServiceProvider.php +++ b/src/LaravelSendInBlueServiceProvider.php @@ -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; @@ -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'); }); }