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