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