| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 14 |
| CRAP Score | 1 |
| Changes | 3 | ||
| Bugs | 0 | Features | 2 |
| 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 | $config['account_sid'], |
|
| 22 | 1 | $config['auth_token'] |
|
| 23 | 1 | ); |
|
| 24 | 1 | }); |
|
| 25 | |||
| 26 | 1 | $this->app->when(TwilioChannel::class) |
|
| 27 | 1 | ->needs('$from') |
|
| 28 | 1 | ->give($this->app['config']['services.twilio.from']); |
|
| 29 | 1 | } |
|
| 30 | |||
| 38 |