| Conditions | 6 |
| Paths | 4 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | public function bootstrap($app) |
||
| 26 | { |
||
| 27 | foreach ($app->modules as $module) { |
||
| 28 | if (is_object($module) && $module instanceof EventInterface) { |
||
| 29 | $module->attachEventsHandlers(); |
||
| 30 | } elseif (is_array($module) && in_array(EventInterface::class, class_implements($module['class']), false)) { |
||
| 31 | $module['class']::attachEventsHandlers(); |
||
| 32 | } |
||
| 33 | } |
||
| 34 | } |
||
| 35 | } |