| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function boot() |
||
| 14 | { |
||
| 15 | $this->app->when(PusherChannel::class) |
||
| 16 | ->needs(PushNotifications::class) |
||
| 17 | ->give(function () { |
||
| 18 | $config = config('services.pusher'); |
||
| 19 | |||
| 20 | return new PushNotifications([ |
||
| 21 | 'instanceId' => $config['beams_instance_id'], |
||
| 22 | 'secretKey' => $config['beams_secret_key'], |
||
| 23 | ]); |
||
| 24 | }); |
||
| 25 | } |
||
| 26 | } |
||
| 27 |