Conditions | 1 |
Paths | 1 |
Total Lines | 22 |
Code Lines | 14 |
Lines | 0 |
Ratio | 0 % |
Tests | 18 |
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 | ->give(function () { |
||
18 | 1 | return new Twilio( |
|
19 | 1 | $this->app->make(TwilioService::class), |
|
20 | 1 | $this->app['config']['services.twilio.from'] |
|
21 | 1 | ); |
|
22 | 1 | }); |
|
23 | |||
24 | 1 | $this->app->when(Twilio::class) |
|
25 | 1 | ->needs(TwilioService::class) |
|
26 | 1 | ->give(function () { |
|
27 | 1 | $config = $this->app['config']['services.twilio']; |
|
28 | |||
29 | 1 | return new TwilioService( |
|
30 | 1 | $config['account_sid'], |
|
31 | 1 | $config['auth_token'] |
|
32 | 1 | ); |
|
33 | 1 | }); |
|
34 | 1 | } |
|
35 | |||
43 |