From 03c93d538eaa50d3f6959086d06531fcbaf6c485 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 23 Dec 2020 17:07:20 +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 | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Kafka/Kafka.php b/Kafka/Kafka.php index 2a61288c..74f5d244 100644 --- a/Kafka/Kafka.php +++ b/Kafka/Kafka.php @@ -130,10 +130,7 @@ class Kafka extends \Snowflake\Process\Process if (!class_exists($namespace)) { return; } - - require_once APP_PATH . 'app/Kafka/' . ucfirst($topic) . 'Consumer.php'; - - $class = Snowflake::createObject($namespace); + $class = new $namespace(); if (!($class instanceof ConsumerInterface)) { return; }