使用的GatewayWorker最新版,启动报Waring: Events::onMessage is not callable

dingcalm

截图

2993 1 1
1个回答

walkor 打赏

composer 里加一个 "" : "./Applications/YourApp/"

    "autoload": {
        "psr-4": {
            "" : "./",
            "" : "./Applications/YourApp/"
        }
    }

然后执行 composer dumpautoload

  • dingcalm 2022-08-26

    我用了tp,Events.php文件在application\im下面

  • walkor 2022-08-26

    原理一样,看Events.php命名空间是什么,"./Applications/YourApp/"改成对应的路径

  • dingcalm 2022-08-26

    可以了,谢了

  • wocall 2023-08-12

    Key is a duplicate in ./composer.json at line 15

年代过于久远,无法发表回答
×
🔝