1 | <?php |
||
45 | class EventDispatcher extends EventManager implements SharedManagerInterface, ListenerAwareInterface, CountableInterface, EventPrototypeInterface |
||
46 | { |
||
47 | use CountableTrait, |
||
48 | NameGlobbingTrait, |
||
49 | SharedManagerTrait, |
||
50 | ListenerAwareTrait, |
||
51 | EventPrototypeTrait; |
||
52 | |||
53 | /** |
||
54 | * Create a event manager with defined scopes |
||
55 | * |
||
56 | * @param string|array $scopes |
||
57 | * @param EventInterface $event_proto event prototype if any |
||
58 | * @access public |
||
59 | */ |
||
60 | public function __construct( |
||
72 | |||
73 | /** |
||
74 | * Override `getMatchedQueue()` in EventManager. |
||
75 | * |
||
76 | * Support for shared manager & name globbing |
||
77 | * |
||
78 | * {@inheritDoc} |
||
79 | */ |
||
80 | protected function getMatchedQueue( |
||
96 | |||
97 | /** |
||
98 | * Get all event names of $this manager |
||
99 | * |
||
100 | * @return array |
||
101 | * @access protected |
||
102 | */ |
||
103 | protected function getEventNames()/*# : array */ |
||
107 | |||
108 | /** |
||
109 | * Get a merged queue in $this manager for the given event name |
||
110 | * |
||
111 | * @param string $eventName |
||
112 | * @return EventQueueInterface |
||
113 | * @access protected |
||
114 | */ |
||
115 | protected function matchEventQueues( |
||
127 | } |
||
128 |