Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 12 |
CRAP Score | 1 |
Changes | 2 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
13 | 1 | public function boot() |
|
14 | { |
||
15 | 1 | $this->app->when(TwilioChannel::class) |
|
16 | 1 | ->needs(Twilio::class) |
|
17 | 1 | ->give(function () { |
|
18 | 1 | $config = $this->app['config']['services.twilio']; |
|
19 | |||
20 | 1 | return new Twilio( |
|
21 | 1 | $this->app->make(TwilioService::class, [ |
|
22 | 1 | $config['account_sid'], |
|
23 | 1 | $config['auth_token'], |
|
24 | ]), |
||
25 | 1 | $config['from'] |
|
26 | ); |
||
27 | 1 | }); |
|
28 | 1 | } |
|
29 | |||
37 |