This commit is contained in:
2022-06-23 00:09:14 +08:00
parent 745308577d
commit 9580aebffd
2 changed files with 2 additions and 5 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ class EventProvider implements ListenerProviderInterface
public function getListenersForEvent(object $event): SplPriorityQueue
{
$queue = new SplPriorityQueue();
$queue->setExtractFlags(SplPriorityQueue::EXTR_PRIORITY);
$queue->setExtractFlags(SplPriorityQueue::EXTR_BOTH);
// TODO: Implement getListenersForEvent() method.
foreach ($this->_listeners[get_class($event)] ?? [] as $listener) {
$queue->insert($listener->listener, $listener->priority);