| Conditions | 2 |
| Paths | 1 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 6 |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function boot() |
||
| 15 | { |
||
| 16 | $this->app->when(JusibeChannel::class) |
||
| 17 | ->needs(JusibeClient::class) |
||
| 18 | ->give(function () { |
||
| 19 | $config = config('services.jusibe'); |
||
| 20 | |||
| 21 | if (is_null($config)) { |
||
| 22 | throw InvalidConfiguration::configurationNotSet(); |
||
| 23 | } |
||
| 24 | |||
| 25 | return new JusibeClient( |
||
| 26 | $config['key'], |
||
| 27 | $config['token'] |
||
| 28 | ); |
||
| 29 | }); |
||
| 30 | } |
||
| 31 | } |
||
| 32 |