diff --git a/wchat/common/Config.php b/wchat/common/Config.php index 3023aa9..3e40e75 100644 --- a/wchat/common/Config.php +++ b/wchat/common/Config.php @@ -536,7 +536,16 @@ class Config $this->usrSwoole = $usrSwoole; } - /** + + /** + * @param array $configs + */ + public function __construct(array $configs) + { + $this->setConfigs($configs); + } + + /** * @param array $configs * @return $this */