| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | public function boot() |
||
| 13 | { |
||
| 14 | $this->app->when(ZonerSmsGatewayChannel::class) |
||
| 15 | ->needs(ZonerSmsGateway::class) |
||
| 16 | ->give(function () { |
||
| 17 | $zonerSmsGatewayConfig = config('services.zoner-sms-gateway'); |
||
| 18 | |||
| 19 | return new ZonerSmsGateway( |
||
| 20 | $zonerSmsGatewayConfig['username'], |
||
| 21 | $zonerSmsGatewayConfig['password'], |
||
| 22 | $zonerSmsGatewayConfig['sender'] |
||
| 23 | ); |
||
| 24 | }); |
||
| 25 | } |
||
| 26 | |||
| 34 |