且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Symfony异常(没有找到类)只在开发和生产服务器上

更新时间:2022-05-13 23:36:33

我找到了解决方案!问题出现在Intercom PHP Package中。在包的src /文件夹中,他们正在以小写字母写入对讲机命名空间的文件夹:

I have found the solution! The problem was in the Intercom PHP Package. In the src/ folder of the package they were writing the folder of the intercom namespace in lowercase letters like so:

src/intercom/...

由于对讲机 t匹配命名空间对讲机它没有工作!

Since intercom doesn't match the namespace Intercom it didn't work!

然而,在我的本地Mac上它工作,因为我猜Mac是不区分大小写的,不在乎吗?

However, on my local Mac it did work, since I guess the Mac is case-insensitive and doesn't care?!

我一直在拉着我的头发,希望这可以帮助别人这样的问题。

I have been pulling my hair over this one and hope this helps others with this kind of issue...

确保您的命名空间与其所在的文件夹大小匹配。