mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-20 15:15:35 +08:00
replace legacy config
This commit is contained in:
@@ -6,7 +6,6 @@ namespace ZM;
|
||||
|
||||
use Exception;
|
||||
use ZM\Command\Server\ServerStartCommand;
|
||||
use ZM\Config\ZMConfig;
|
||||
use ZM\Exception\InitException;
|
||||
use ZM\Plugin\InstantPlugin;
|
||||
|
||||
@@ -40,7 +39,7 @@ class InstantApplication extends InstantPlugin
|
||||
|
||||
public function withArgs(array $args): InstantApplication
|
||||
{
|
||||
$this->args = ZMConfig::smartPatch($this->args, $args);
|
||||
$this->args = array_replace_recursive($this->args, $args);
|
||||
return $this;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user