webman升级到1.6.2后报错
早上composer update了一下 系统运行不了 好像是自动加载未识别
if ($monitorConfig = config('process.monitor.constructor')) {
$monitor = new Monitor(...array_values($monitorConfig));
}
PHP Fatal error: Uncaught Error: Class "app\process\Monitor" not found in D:\MyCode\BackEnd\ErpServer\windows.php:102
Stack trace:
#0 {main}
thrown in D:\MyCode\BackEnd\ErpServer\windows.php on line 102
PS composer update
Loading composer repositories with package information
Updating dependencies
Lock file operations: 0 installs, 2 updates, 1 removal
"php": ">=7.2",
"workerman/webman-framework": "^1.6",
"monolog/monolog": "^2.0",
"illuminate/database": "^11.27",
"laravel/serializable-closure": "^1.3",
"illuminate/pagination": "^11.32",
"psr/container": "^2.0",
"php-di/php-di": "^7.0",
"doctrine/annotations": "^2.0",
"illuminate/redis": "^11.32",
"illuminate/events": "^11.29",
"tinywan/jwt": "^1.10"
初始化一个新的webman项目,就会生成
\app\process\Http.php
\app\process\Monitor.php
拷过来就可以了
嗯 可以了
看下文档啊,文档都已经明确说明了