Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
18 | public function boot(): void |
||
19 | { |
||
20 | $this->app |
||
21 | ->when(RocketChatWebhookChannel::class) |
||
22 | ->needs(RocketChat::class) |
||
23 | ->give(function () { |
||
24 | return new RocketChat( |
||
25 | new HttpClient(), |
||
26 | Config::get('services.rocketchat.url'), |
||
27 | Config::get('services.rocketchat.token'), |
||
28 | Config::get('services.rocketchat.channel') |
||
29 | ); |
||
30 | }); |
||
31 | } |
||
32 | } |
||
33 |