From 20adc186d43cd2b17950c8cc5218984bdb3dee6b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Mon, 6 Dec 2021 15:51:29 +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 --- kiri-engine/Cache/Base/Redis.php | 1 - kiri-engine/Pool/Redis.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/kiri-engine/Cache/Base/Redis.php b/kiri-engine/Cache/Base/Redis.php index 0b204e04..a3abd50f 100644 --- a/kiri-engine/Cache/Base/Redis.php +++ b/kiri-engine/Cache/Base/Redis.php @@ -48,7 +48,6 @@ class Redis implements StopHeartbeatCheck */ public function __construct(array $config) { - var_dump($config); $this->host = $config['host']; $this->port = $config['port']; $this->database = $config['database']; diff --git a/kiri-engine/Pool/Redis.php b/kiri-engine/Pool/Redis.php index b4340e2a..4c9d3b4f 100644 --- a/kiri-engine/Pool/Redis.php +++ b/kiri-engine/Pool/Redis.php @@ -50,7 +50,7 @@ class Redis extends Component public function create(string $name, mixed $config): Closure { return static function () use ($name, $config) { - return Kiri::getDi()->create(\Kiri\Cache\Base\Redis::class, $config); + return Kiri::getDi()->create(\Kiri\Cache\Base\Redis::class, [$config]); }; }