From f7630a4c2ab960ac36312f176afa8ee0b2d668dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Thu, 20 Jan 2022 19:04:16 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E6=94=B9=E5=90=8D"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit fdf58326 --- EventDispatch.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/EventDispatch.php b/EventDispatch.php index d20c4b5..a0fe369 100644 --- a/EventDispatch.php +++ b/EventDispatch.php @@ -22,7 +22,7 @@ class EventDispatch extends Component implements EventDispatcherInterface */ public function dispatch(object $event): object { - $lists = $this->eventProvider->getListenersForEvent($event); + $lists = $this->getEventProvider()->getListenersForEvent($event); foreach ($lists as $listener) { /** @var Struct $list */ $listener($event);