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 +25
-3
lines changed Expand file tree Collapse file tree 2 files changed +25
-3
lines changed Original file line number Diff line number Diff line change 46
46
` getListenersForEventByPriority() ` method of each, returning the
47
47
aggregated listeners in priority order.
48
48
- [x] Make ` SharedEventManager ` an extension of ` PrioritizedIdentifierListenerProvider `
49
- - [ ] Create ` ListenerSubscriberInterface `
50
- - [ ] ` attach(PrioritizedListenerAttachmentInterface $provider, $priority = 1) `
51
- - [ ] ` detach(PrioritizedListenerAttachmentInterface $provider) `
49
+ - [x ] Create ` ListenerSubscriberInterface `
50
+ - [x ] ` attach(PrioritizedListenerAttachmentInterface $provider, $priority = 1) `
51
+ - [x ] ` detach(PrioritizedListenerAttachmentInterface $provider) `
52
52
- [ ] Create ` AbstractListenerSubscriber ` and/or ` ListenerSubscriberTrait `
53
53
- [ ] define a default ` detach() ` implementation
54
54
- [ ] Create ` LazyListenerSubscriber ` based on ` LazyListenerAggregate `
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
+ interface ListenerSubscriberInterface
11
+ {
12
+ /**
13
+ * @param int $priority Default priority at which to attach composed listeners.
14
+ * @return void
15
+ */
16
+ public function attach (PrioritizedListenerAttachmentInterface $ provider , $ priority = 1 );
17
+
18
+ /**
19
+ * @return void
20
+ */
21
+ public function detach (PrioritizedListenerAttachmentInterface $ provider );
22
+ }
You can’t perform that action at this time.
0 commit comments