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