Conditions | 2 |
Paths | 2 |
Total Lines | 19 |
Lines | 0 |
Ratio | 0 % |
Tests | 11 |
CRAP Score | 2.0023 |
Changes | 0 |
1 | <?php |
||
15 | 30 | public function boot() |
|
16 | { |
||
17 | 30 | $this->publishes([ |
|
18 | 30 | __DIR__ . '/../config/postmark.php' => config_path('postmark.php') |
|
19 | 30 | ], 'config'); |
|
20 | |||
21 | 30 | if ($this->app['config']['mail.driver'] !== 'postmark') { |
|
22 | return; |
||
23 | } |
||
24 | |||
25 | 30 | $this->mergeConfigFrom(__DIR__ . '/../config/postmark.php', 'postmark'); |
|
26 | |||
27 | $this->app['swift.transport']->extend('postmark', function () { |
||
28 | 30 | return new PostmarkTransport( |
|
29 | 30 | $this->guzzle(config('postmark.guzzle', [])), |
|
30 | 30 | config('postmark.secret', config('services.postmark.secret')) |
|
31 | ); |
||
32 | 30 | }); |
|
33 | 30 | } |
|
34 | |||
47 |