| Total Complexity | 3 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 14 | #[Package('system-settings')] |
||
| 15 | final class RefreshIndexSubscriber implements EventSubscriberInterface |
||
| 16 | { |
||
| 17 | private AdminSearchRegistry $registry; |
||
| 18 | |||
| 19 | public function __construct(AdminSearchRegistry $registry) |
||
| 22 | } |
||
| 23 | |||
| 24 | /** |
||
| 25 | * @return array<string, string|array{0: string, 1: int}|list<array{0: string, 1?: int}>> |
||
|
|
|||
| 26 | */ |
||
| 27 | public static function getSubscribedEvents() |
||
| 28 | { |
||
| 29 | return [ |
||
| 30 | RefreshIndexEvent::class => 'handled', |
||
| 31 | ]; |
||
| 32 | } |
||
| 33 | |||
| 34 | public function handled(RefreshIndexEvent $event): void |
||
| 41 | ) |
||
| 42 | ); |
||
| 45 |