Conditions | 3 |
Paths | 4 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
20 | public function boot() |
||
21 | { |
||
22 | if ($this->app->runningInConsole()) { |
||
23 | $this->commands([ |
||
24 | WebSocketService::class |
||
25 | ]); |
||
26 | } |
||
27 | |||
28 | $this->publishes([ |
||
29 | __DIR__.'/config' => realpath('config'), |
||
30 | __DIR__.'/Routes/published' => realpath('routes'), |
||
31 | ],'laravel-ratchet'); |
||
32 | |||
33 | if ($this->app['config']->get('laravel-ratchet') === null) { |
||
34 | $this->app['config']->set('laravel-ratchet', require __DIR__.'/config/laravel-ratchet.php'); |
||
35 | } |
||
36 | } |
||
37 | |||
50 |