Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php |
||
14 | public function boot() |
||
15 | { |
||
16 | // Bootstrap code here. |
||
17 | |||
18 | $this->app->when(LineChannel::class) |
||
19 | ->needs(LINEBot::class) |
||
20 | ->give(function () { |
||
21 | $httpClient = new CurlHTTPClient(config('services.line.token')); |
||
22 | |||
23 | return new LINEBot( |
||
24 | $httpClient, |
||
25 | ['channelSecret' => config('services.line.secret')] |
||
26 | ); |
||
27 | }); |
||
28 | } |
||
29 | |||
37 |