改名
This commit is contained in:
@@ -21,7 +21,7 @@ class EventProvider implements EventProviders
|
|||||||
{
|
{
|
||||||
$queue = new \SplPriorityQueue();
|
$queue = new \SplPriorityQueue();
|
||||||
// TODO: Implement getListenersForEvent() method.
|
// TODO: Implement getListenersForEvent() method.
|
||||||
foreach ($this->_listeners as $listener) {
|
foreach ($this->_listeners[get_class($event)] ?? [] as $listener) {
|
||||||
if (!($event instanceof $listener->event)) {
|
if (!($event instanceof $listener->event)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user