composer 里加一个 "" : "./Applications/YourApp/"
"" : "./Applications/YourApp/"
"autoload": { "psr-4": { "" : "./", "" : "./Applications/YourApp/" } }
然后执行 composer dumpautoload
composer dumpautoload
我用了tp,Events.php文件在application\im下面
原理一样,看Events.php命名空间是什么,"./Applications/YourApp/"改成对应的路径
可以了,谢了
Key is a duplicate in ./composer.json at line 15
composer 里加一个
"" : "./Applications/YourApp/"
然后执行
composer dumpautoload
我用了tp,Events.php文件在application\im下面
原理一样,看Events.php命名空间是什么,"./Applications/YourApp/"改成对应的路径
可以了,谢了
Key is a duplicate in ./composer.json at line 15