Total Complexity | 2 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
16 | class IntercomServiceProvider extends ServiceProvider |
||
17 | { |
||
18 | /** |
||
19 | * Bootstrap the application services. |
||
20 | */ |
||
21 | public function boot() |
||
22 | { |
||
23 | $this->app->when(IntercomChannel::class) |
||
24 | ->needs(IntercomClient::class) |
||
25 | ->give(function () { |
||
26 | /** @var Config $config */ |
||
27 | return new IntercomClient( |
||
28 | Config::get('services.intercom.token'), |
||
29 | null |
||
30 | ); |
||
31 | }); |
||
32 | } |
||
33 | |||
34 | /** |
||
35 | * Register any package services. |
||
36 | */ |
||
37 | public function register() |
||
41 | }); |
||
42 | } |
||
43 | } |