This repository was archived by the owner on Jan 29, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Expand file tree Collapse file tree 2 files changed +23
-2
lines changed Original file line number Diff line number Diff line change 10
10
- [x] Modify ` EventManager ` internals to use the PSR-14 method if available
11
11
- [x] Mark ` StoppableEventInterface ` as deprecated
12
12
- [ ] Listener provider implementation
13
- - [ ] Create a ` ListenerProvider ` subnamespace
14
- - [ ] Create a ` ListenerProviderInterface ` shim
13
+ - [x ] Create a ` ListenerProvider ` subnamespace
14
+ - [x ] Create a ` ListenerProviderInterface ` shim
15
15
- [ ] Create a ` PrioritizedListenerProvider ` interface extending the
16
16
` ListenerProviderInterface ` and defining a
17
17
` getListenersForEventByPriority($event, array $identifiers = []) : array<int, callable[]> ` method.
Original file line number Diff line number Diff line change
1
+ <?php
2
+ /**
3
+ * @see https://github.com/zendframework/zend-eventmanager for the canonical source repository
4
+ * @copyright Copyright (c) 2019 Zend Technologies USA Inc. (https://www.zend.com)
5
+ * @license https://github.com/zendframework/zend-eventmanager/blob/master/LICENSE.md New BSD License
6
+ */
7
+
8
+ namespace Zend \EventManager \ListenerProvider ;
9
+
10
+ /**
11
+ * @deprecated This interface is a forwards-compatibility shim for use until we can
12
+ * provide full PSR-14 compatibility, and will be removed in version 4.0.
13
+ */
14
+ interface ListenerProviderInterface
15
+ {
16
+ /**
17
+ * @param object $event The event for which to retrieve listeners.
18
+ * @return callable[] Iterable list of listeners to which to pass the event.
19
+ */
20
+ public function getListenersForEvent ($ event );
21
+ }
You can’t perform that action at this time.
0 commit comments