webman升级到1.6.2后报错

loaderwang

问题描述

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

  • Removing doctrine/deprecations (1.1.3)
  • Upgrading doctrine/lexer (2.1.1 => 3.0.1)
  • Upgrading workerman/webman-framework (v1.6.0 => v1.6.2)

操作系统及workerman/webman等框架组件具体版本

"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"

297 2 0
2个回答

pyj2004

初始化一个新的webman项目,就会生成
\app\process\Http.php
\app\process\Monitor.php

拷过来就可以了

小天天天天

看下文档啊,文档都已经明确说明了

  • 暂无评论
×
🔝