3 Commits

Author SHA1 Message Date
as2252258 72a7c58bc4 Default Changelist 2023-07-20 17:42:42 +08:00
as2252258 e1959752e1 Default Changelist 2023-07-18 00:24:58 +08:00
as2252258 361ad4538f Default Changelist 2023-07-18 00:19:13 +08:00
2 changed files with 12 additions and 3 deletions
+1 -1
View File
@@ -21,7 +21,7 @@
}, },
"require": { "require": {
"php": ">= 8.0", "php": ">= 8.0",
"game-worker/kiri-client": "dev-master", "game-worker/kiri-client": "~v2.6",
"game-worker/kiri-container": "~v1.9", "game-worker/kiri-container": "~v1.9",
"psr/container": "*" "psr/container": "*"
}, },
+11 -2
View File
@@ -536,11 +536,20 @@ class Config
$this->usrSwoole = $usrSwoole; $this->usrSwoole = $usrSwoole;
} }
/**
/**
* @param array $configs
*/
public function __construct(array $configs)
{
$this->setConfigs($configs);
}
/**
* @param array $configs * @param array $configs
* @return $this * @return $this
*/ */
public function setConfigs(array $configs): static protected function setConfigs(array $configs): static
{ {
if (empty($configs)) { if (empty($configs)) {
return $this; return $this;