mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-23 00:25:35 +08:00
update some Docs and comments
This commit is contained in:
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
这里将会记录各个主版本的框架升级后,涉及 `global.php` 的更新日志,你可以根据这里描述的内容与你的旧配置文件进行合并。
|
这里将会记录各个主版本的框架升级后,涉及 `global.php` 的更新日志,你可以根据这里描述的内容与你的旧配置文件进行合并。
|
||||||
|
|
||||||
## v2.5.0 (build 410)
|
## v2.5.0 (build 413)
|
||||||
|
|
||||||
- 新增 `$config['runtime']` 运行时设置。
|
- 新增 `$config['runtime']` 运行时设置。
|
||||||
- 删除 `$config['server_event_handler_class']`,默认在启动时全局扫描。
|
- 删除 `$config['server_event_handler_class']`,默认在启动时全局扫描。
|
||||||
@@ -14,7 +14,8 @@
|
|||||||
```php
|
```php
|
||||||
/** 一些框架与Swoole运行时设置的调整 */
|
/** 一些框架与Swoole运行时设置的调整 */
|
||||||
$config['runtime'] = [
|
$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连接池 */
|
/** MySQL数据库连接信息,host留空则启动时不创建sql连接池 */
|
||||||
|
|||||||
@@ -32,7 +32,6 @@
|
|||||||
- 中间件支持传参。
|
- 中间件支持传参。
|
||||||
- MySQL 数据库查询器改为使用 `doctrine/dbal` 组件,更灵活和稳定。
|
- MySQL 数据库查询器改为使用 `doctrine/dbal` 组件,更灵活和稳定。
|
||||||
- 新增对 `SWOOLE_BASE` 模式的支持(支持只启动一个进程的 Server)。
|
- 新增对 `SWOOLE_BASE` 模式的支持(支持只启动一个进程的 Server)。
|
||||||
-
|
|
||||||
|
|
||||||
以下是版本**修改内容**:
|
以下是版本**修改内容**:
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ class CheckConfigCommand extends Command
|
|||||||
$this->check($remote_cfg, "global.production.php", $output);
|
$this->check($remote_cfg, "global.production.php", $output);
|
||||||
}
|
}
|
||||||
if ($this->need_update === true) {
|
if ($this->need_update === true) {
|
||||||
$output->writeln("<comment>有配置文件需要更新,详情见文档 `https://framework.zhamao.xin/update/config.md`</comment>");
|
$output->writeln("<comment>有配置文件需要更新,详情见文档 `https://framework.zhamao.xin/update/config`</comment>");
|
||||||
} else {
|
} else {
|
||||||
$output->writeln("<info>配置文件暂无更新!</info>");
|
$output->writeln("<info>配置文件暂无更新!</info>");
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user