From d7c298d1f8275380a28d4dce6c674e6e6fdc6603 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 28 Oct 2020 17:50:48 +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/Producer.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Kafka/Producer.php b/Kafka/Producer.php index 4808327d..dd1a5d6c 100644 --- a/Kafka/Producer.php +++ b/Kafka/Producer.php @@ -45,9 +45,12 @@ class Producer extends Component public function __construct($config = []) { + parent::__construct($config); + if (!class_exists(Conf::class)) { + return; + } $this->conf = new Conf(); $this->topicConf = new TopicConf(); - parent::__construct($config); }