| Total Complexity | 3 |
| Total Lines | 30 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class SendinblueServiceProvider extends ServiceProvider |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * Perform post-registration booting of services. |
||
| 21 | */ |
||
| 22 | public function boot() |
||
| 23 | { |
||
| 24 | // Publishing is only necessary when using the CLI. |
||
| 25 | if ($this->app->runningInConsole()) { |
||
| 26 | // Publishing the configuration file. Use : |
||
| 27 | // php artisan vendor:publish --provider="Vansteen\Sendinblue\SendinblueServiceProvider" |
||
| 28 | $this->publishes([ |
||
| 29 | __DIR__ . '/../config/sendinblue.php' => config_path('sendinblue.php'), |
||
| 30 | ], 'sendinblue.config'); |
||
| 31 | } |
||
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * Register any application services. |
||
| 36 | */ |
||
| 37 | public function register() |
||
| 47 | }); |
||
| 48 | } |
||
| 50 |