Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
13 | public function boot() |
||
14 | { |
||
15 | $this->app->when(Channel::class) |
||
16 | ->needs(Pusher::class) |
||
17 | ->give(function () { |
||
18 | $pusherConfig = config('broadcasting.connections.pusher'); |
||
19 | |||
20 | return new Pusher( |
||
21 | $pusherConfig['key'], |
||
22 | $pusherConfig['secret'], |
||
23 | $pusherConfig['app_id'] |
||
24 | ); |
||
25 | }); |
||
26 | } |
||
27 | |||
34 | } |