mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-06-07 20:48:09 +08:00
fix: Worker 增加 $statusFile 变量默认设置
This commit is contained in:
parent
62f8b0471d
commit
3550bbe68b
@ -88,7 +88,7 @@ class Worker extends Command
|
|||||||
|
|
||||||
// 静态属性设置
|
// 静态属性设置
|
||||||
foreach ($this->config['worker'] ?? [] as $name => $value) {
|
foreach ($this->config['worker'] ?? [] as $name => $value) {
|
||||||
if (in_array($name, ['daemonize', 'stdoutFile', 'pidFile', 'logFile'])) {
|
if (in_array($name, ['daemonize', 'statusFile', 'stdoutFile', 'pidFile', 'logFile'])) {
|
||||||
Workerman::${$name} = $value;
|
Workerman::${$name} = $value;
|
||||||
unset($this->config['worker'][$name]);
|
unset($this->config['worker'][$name]);
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user