1 | <?php |
||
9 | class PrioritizedListenerRegistrar implements ListenerRegistrar, ListenerProviderInterface |
||
10 | { |
||
11 | /** @var array<string,PrioritizedListenersForEvent> */ |
||
12 | protected $listenersPerEvent = []; |
||
13 | |||
14 | public function subscribeTo(string $event, callable $listener, int $priority = ListenerPriority::NORMAL): void |
||
22 | |||
23 | public function subscribeOnceTo(string $event, callable $listener, int $priority = ListenerPriority::NORMAL): void |
||
27 | |||
28 | public function getListenersForEvent(object $event): iterable |
||
44 | |||
45 | private function getListenersForEventName(string $eventName): iterable |
||
53 | |||
54 | public function subscribeListenersFrom(ListenerSubscriber $subscriber): void |
||
58 | } |
||
59 |