安装Symfony的FOSUserBundle不成功后有个这样的错误


手动按照 index.md 里的步骤安装Symfony的 FOSUserBundle 不成功后有个这样的错误 Class 'Doctrine\Common\Annotations\AnnotationRegistry' not found 。。
请问是什么原因造成的,该如何修改

php-框架 symfony php bundle安装错误

狂暴的蛋蛋 9 years, 11 months ago

是按照这里的安装步骤安装的 https://github.com/FriendsOfSymfony/FOSUserBundle/blob/v1.2.5/Resources/doc/index.md 。。。。。。出现错误后,将路由,注册等相关添加的都删除了还是出现了该错误

akasier answered 9 years, 11 months ago

建议检查下命名空间 路径等。

bbokay answered 9 years, 11 months ago

应该是包文件下载不完整造成的可以吧根目录下的Vendor文件夹composer.lock文件删除掉,重新执行composer install命令。

Peter. answered 9 years, 11 months ago

Your Answer