This commit is contained in:
2020-12-23 17:06:36 +08:00
parent 528451ac6a
commit 1f8c77411a
+3
View File
@@ -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;