From 61741f926ff282448b11603dd19270f03920956b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 14 Jan 2022 16:11:23 +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 --- DatabasesProviders.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/DatabasesProviders.php b/DatabasesProviders.php index a5be2c8..6d565ad 100644 --- a/DatabasesProviders.php +++ b/DatabasesProviders.php @@ -12,6 +12,7 @@ use Kiri\Application; use Kiri\Exception\ConfigException; use Kiri\Server\Events\OnTaskerStart; use Kiri\Server\Events\OnWorkerStart; +use Kiri\Server\Events\OnProcessStart; /** * Class DatabasesProviders @@ -28,6 +29,7 @@ class DatabasesProviders extends Providers public function onImport(Application $application) { $this->eventProvider->on(OnWorkerStart::class, [$this, 'createPool']); + $this->eventProvider->on(OnProcessStart::class, [$this, 'createPool']); $this->eventProvider->on(OnTaskerStart::class, [$this, 'createPool']); }