diff --git a/docs/update/config.md b/docs/update/config.md index 22b74703..6cf4419e 100644 --- a/docs/update/config.md +++ b/docs/update/config.md @@ -2,7 +2,7 @@ 这里将会记录各个主版本的框架升级后,涉及 `global.php` 的更新日志,你可以根据这里描述的内容与你的旧配置文件进行合并。 -## v2.5.0 (build 410) +## v2.5.0 (build 413) - 新增 `$config['runtime']` 运行时设置。 - 删除 `$config['server_event_handler_class']`,默认在启动时全局扫描。 @@ -14,7 +14,8 @@ ```php /** 一些框架与Swoole运行时设置的调整 */ $config['runtime'] = [ - 'swoole_coroutine_hook_flags' => SWOOLE_HOOK_ALL & (~SWOOLE_HOOK_CURL) + 'swoole_coroutine_hook_flags' => SWOOLE_HOOK_ALL & (~SWOOLE_HOOK_CURL), + 'swoole_server_mode' => SWOOLE_PROCESS ]; /** MySQL数据库连接信息,host留空则启动时不创建sql连接池 */ diff --git a/docs/update/v2.md b/docs/update/v2.md index 6d7965c1..8b082528 100644 --- a/docs/update/v2.md +++ b/docs/update/v2.md @@ -32,7 +32,6 @@ - 中间件支持传参。 - MySQL 数据库查询器改为使用 `doctrine/dbal` 组件,更灵活和稳定。 - 新增对 `SWOOLE_BASE` 模式的支持(支持只启动一个进程的 Server)。 -- 以下是版本**修改内容**: diff --git a/src/ZM/Command/CheckConfigCommand.php b/src/ZM/Command/CheckConfigCommand.php index 4189c4cd..4f991a94 100644 --- a/src/ZM/Command/CheckConfigCommand.php +++ b/src/ZM/Command/CheckConfigCommand.php @@ -38,7 +38,7 @@ class CheckConfigCommand extends Command $this->check($remote_cfg, "global.production.php", $output); } if ($this->need_update === true) { - $output->writeln("有配置文件需要更新,详情见文档 `https://framework.zhamao.xin/update/config.md`"); + $output->writeln("有配置文件需要更新,详情见文档 `https://framework.zhamao.xin/update/config`"); } else { $output->writeln("配置文件暂无更新!"); }