From 5a7c7176dcf789d3e80a3c1ba43898482514b392 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 23 Dec 2020 17:08:26 +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 --- Kafka/Kafka.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Kafka/Kafka.php b/Kafka/Kafka.php index 74f5d244..c62697e1 100644 --- a/Kafka/Kafka.php +++ b/Kafka/Kafka.php @@ -130,7 +130,7 @@ class Kafka extends \Snowflake\Process\Process if (!class_exists($namespace)) { return; } - $class = new $namespace(); + $class = Snowflake::createObject($namespace); if (!($class instanceof ConsumerInterface)) { return; }