Conditions | 4 |
Paths | 2 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
34 | public function dispatch($name, EventInterface $event) |
||
35 | { |
||
36 | if (isset($this->listeners[$name])) { |
||
37 | foreach ($this->listeners[$name] as $priority) { |
||
38 | foreach ($priority as $callable) { |
||
39 | call_user_func($callable, $event, $name, $this); |
||
40 | } |
||
41 | } |
||
42 | } |
||
43 | |||
44 | return $event; |
||
45 | } |
||
46 | |||
68 |