From 389ad887e65edc6cec6a8df0a2b0009433946173 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Fri, 18 Feb 2022 15:11:44 +0800 Subject: [PATCH] modify plugin name --- DatabasesProviders.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/DatabasesProviders.php b/DatabasesProviders.php index afe8ac1..c321f46 100644 --- a/DatabasesProviders.php +++ b/DatabasesProviders.php @@ -9,11 +9,9 @@ use Kiri; use Kiri\Abstracts\Config; use Kiri\Abstracts\Providers; use Kiri\Application; -use Kiri\Exception\ConfigException; -use Kiri\Server\Events\OnTaskerStart; -use Kiri\Server\Events\OnWorkerStart; -use Kiri\Server\Events\OnProcessStart; use Kiri\Events\OnBeforeCommandExecute; +use Kiri\Exception\ConfigException; +use Kiri\Server\Events\OnServerBeforeStart; use Psr\Container\ContainerExceptionInterface; use Psr\Container\NotFoundExceptionInterface; @@ -33,7 +31,7 @@ class DatabasesProviders extends Providers */ public function onImport(Application $application) { - $this->getEventProvider()->on(OnBeforeCommandExecute::class, [$this, 'createPool']); + $this->getEventProvider()->on(OnServerBeforeStart::class, [$this, 'createPool']); }