改名
This commit is contained in:
+1
-4
@@ -130,10 +130,7 @@ class Kafka extends \Snowflake\Process\Process
|
|||||||
if (!class_exists($namespace)) {
|
if (!class_exists($namespace)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
$class = new $namespace();
|
||||||
require_once APP_PATH . 'app/Kafka/' . ucfirst($topic) . 'Consumer.php';
|
|
||||||
|
|
||||||
$class = Snowflake::createObject($namespace);
|
|
||||||
if (!($class instanceof ConsumerInterface)) {
|
if (!($class instanceof ConsumerInterface)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user