Skip to content

Commit aa8c0f9

Browse files
committed
added attribution to the spark post driver, made casing consistent with the 5.2 laravel driver
1 parent b7d7b55 commit aa8c0f9

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

src/SparkpostServiceProvider.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
use GuzzleHttp\Client;
66
use Illuminate\Mail\TransportManager;
77
use Illuminate\Support\ServiceProvider;
8-
use Clarification\MailDrivers\Sparkpost\Transport\SparkpostTransport;
8+
use Clarification\MailDrivers\Sparkpost\Transport\SparkPostTransport;
99
use Illuminate\Mail\Transport\SparkPostTransport as LaravelSparkPostTransport;
1010

1111
class SparkpostServiceProvider extends ServiceProvider
@@ -39,7 +39,7 @@ public function register()
3939
$config = $this->app['config']->get('services.sparkpost', []);
4040
$options = isset($config['guzzle']) ? $config['guzzle'] : [];
4141
$client = new Client($options);
42-
return new SparkpostTransport($client, $config['secret']);
42+
return new SparkPostTransport($client, $config['secret']);
4343
});
4444
return $manager;
4545
});

src/Transport/SparkpostTransport.php

+8-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,14 @@
66
use GuzzleHttp\ClientInterface;
77
use Illuminate\Mail\Transport\Transport;
88

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
1017
{
1118
/**
1219
* Guzzle client instance.

0 commit comments

Comments
 (0)