| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 22 | public function __invoke(RegistrationInterface $registration, ?SimpleXMLElement $config = null): void |
||
| 23 | { |
||
| 24 | foreach ($this->getHooks() as $hook) { |
||
| 25 | /** @psalm-suppress UnresolvableInclude */ |
||
| 26 | $file = __DIR__ . '/' . str_replace([__NAMESPACE__, '\\'], ['', '/'], $hook) . '.php'; |
||
| 27 | |||
| 28 | require_once $file; |
||
| 29 | |||
| 30 | $registration->registerHooksFromClass($hook); |
||
| 31 | } |
||
| 42 |