From 8e3e59efabeb000141137f105a46098d062d759b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 28 Apr 2021 11:18:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Abstracts/BaseApplication.php | 1 + System/Event.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/System/Abstracts/BaseApplication.php b/System/Abstracts/BaseApplication.php index e3b9e4bf..9de64e7f 100644 --- a/System/Abstracts/BaseApplication.php +++ b/System/Abstracts/BaseApplication.php @@ -451,6 +451,7 @@ abstract class BaseApplication extends Service 'logger' => ['class' => Logger::class], 'annotation' => ['class' => SAnnotation::class], 'router' => ['class' => Router::class], + 'Event' => ['class' => Event::class], 'redis' => ['class' => Redis::class], 'aop' => ['class' => Aop::class], 'jwt' => ['class' => Jwt::class], diff --git a/System/Event.php b/System/Event.php index 82b5efba..8504fa10 100644 --- a/System/Event.php +++ b/System/Event.php @@ -188,7 +188,7 @@ class Event extends BaseObject * @return bool * @throws Exception */ - public static function dispatch($name, $params = [], $scope = null): bool + public function dispatch($name, $params = [], $scope = null): bool { return static::trigger($name, $params, $scope); }