Symfony2 Constraint Class not found

不打扰是莪最后的温柔 提交于 2020-01-05 19:31:31

问题


Everything is ok in my dev environment on my local machine. However, on my new staging server, I get an error on my registration page only (as far as I can see):

PHP Fatal error: Class 'Symfony\Component\Validator\Constraints\notNull' not found in /var/www/sf-ysu/shared/vendor/symfony/symfony/src/Symfony/Component/Validator/Mapping/Loader/AbstractLoader.php on line 63

I use capifony for deployment, which means my vendor directory is symlinked to another location. This might have something to do with it, but I'm not sure.

Does anyone have clue?


回答1:


Seems like you have Windows on your local machine and Windows is case insensitive. Make sure you use the NotNull constraint — not notNull.



来源:https://stackoverflow.com/questions/12249406/symfony2-constraint-class-not-found

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!