args = ServerStartCommand::exportOptionArray(); } public function withConfig(array $config): ZMApplication { // TODO: 完成patch config return $this; } public function withArgs(array $args): ZMApplication { $this->args = array_replace_recursive($this->args, $args); return $this; } /** * @throws \Exception */ public function run() { PluginManager::addPlugin(['name' => 'native-app', 'object' => $this]); (new Framework($this->args))->init()->start(); } }