Conditions | 4 |
Paths | 6 |
Total Lines | 13 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php namespace LaravelZero\Framework\Commands\Component\Illuminate\Events; |
||
26 | public function boot() |
||
27 | { |
||
28 | $dispatcher = $this->app->make('events'); |
||
29 | foreach ($this->listens() as $event => $listeners) { |
||
30 | foreach ($listeners as $listener) { |
||
31 | $dispatcher->listen($event, $listener); |
||
32 | } |
||
33 | } |
||
34 | |||
35 | foreach ($this->subscribe as $subscriber) { |
||
36 | $dispatcher->subscribe($subscriber); |
||
37 | } |
||
38 | } |
||
39 | |||
58 |