0
我有这个设置成composer.json作曲家PSR-4自动加载具有相同的密钥
"autoload": {
"psr-4": {
"": "src/",
"App\\": "src/App"
}
}
这个文件夹结构:
src
---App
------MyClass.php --> namespace \App;
---Somedir
------Otherdir
---------OtherClass.php --> no namespace
下的文件夹src/App
将加载,文件Somedir
不低于。
有什么问题吗?