| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 1 | Features | 0 |
| 1 | <?php |
||
| 31 | public function register() |
||
| 32 | { |
||
| 33 | $this->app->singleton('centrifugo', function ($app) { |
||
| 34 | $config = $app->make('config')->get('broadcasting.connections.centrifugo'); |
||
| 35 | $http = new HttpClient(); |
||
| 36 | |||
| 37 | return new Centrifugo($config, $http); |
||
| 38 | }); |
||
| 39 | |||
| 40 | $this->app->alias('centrifugo', Centrifugo::class); |
||
| 41 | $this->app->alias('centrifugo', CentrifugoInterface::class); |
||
| 42 | } |
||
| 44 |