From 1f8c77411a901c65505b33733717e751c85322de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 23 Dec 2020 17:06:36 +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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Kafka/Kafka.php b/Kafka/Kafka.php index c62697e1..2a61288c 100644 --- a/Kafka/Kafka.php +++ b/Kafka/Kafka.php @@ -130,6 +130,9 @@ 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); if (!($class instanceof ConsumerInterface)) { return;