File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change 5
5
use GuzzleHttp \Client ;
6
6
use Illuminate \Mail \TransportManager ;
7
7
use Illuminate \Support \ServiceProvider ;
8
- use Clarification \MailDrivers \Sparkpost \Transport \SparkpostTransport ;
8
+ use Clarification \MailDrivers \Sparkpost \Transport \SparkPostTransport ;
9
9
use Illuminate \Mail \Transport \SparkPostTransport as LaravelSparkPostTransport ;
10
10
11
11
class SparkpostServiceProvider extends ServiceProvider
@@ -39,7 +39,7 @@ public function register()
39
39
$ config = $ this ->app ['config ' ]->get ('services.sparkpost ' , []);
40
40
$ options = isset ($ config ['guzzle ' ]) ? $ config ['guzzle ' ] : [];
41
41
$ client = new Client ($ options );
42
- return new SparkpostTransport ($ client , $ config ['secret ' ]);
42
+ return new SparkPostTransport ($ client , $ config ['secret ' ]);
43
43
});
44
44
return $ manager ;
45
45
});
Original file line number Diff line number Diff line change 6
6
use GuzzleHttp \ClientInterface ;
7
7
use Illuminate \Mail \Transport \Transport ;
8
8
9
- class SparkpostTransport extends Transport
9
+
10
+ /**
11
+ * This is almost a direct copy past of the driver included in Laravel 5.2.23+
12
+ * https://github.com/laravel/framework/blob/5.2/src/Illuminate/Mail/Transport/SparkPostTransport.php
13
+ *
14
+ * You should only need this package if you are using laravel 5.0.0 to 5.2.22
15
+ */
16
+ class SparkPostTransport extends Transport
10
17
{
11
18
/**
12
19
* Guzzle client instance.
You can’t perform that action at this time.
0 commit comments