| 1 | <?php |
||
| 8 | class PushoverServiceProvider extends ServiceProvider |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Bootstrap the application services. |
||
| 12 | */ |
||
| 13 | public function boot() |
||
| 14 | { |
||
| 15 | $this->app->when(PushoverChannel::class) |
||
| 16 | ->needs(Pushover::class) |
||
| 17 | ->give(function () { |
||
| 18 | return new Pushover(new HttpClient(), config('services.pushover.token')); |
||
| 19 | }); |
||
| 20 | 1 | } |
|
| 21 | |||
| 22 | /** |
||
| 23 | * Register the application services. |
||
| 24 | */ |
||
| 25 | public function register() |
||
| 28 | } |
||
| 29 |