今天做一个composer更新突然出现以下错误:
[Symfony\Component\DependencyInjection\Exception\ServiceNotFoundException] You have requested a non-existent service "fos_user.doctrine_registry".
当 Composer 正在执行
cache:clear --no-warmup
命令。搜索找到了与从 Doctrine 转换为 MongoDB 相关的答案,但这些解决方案对我不起作用。我正在使用 Doctrine。我试过 Fosuserbundle dev-master、dev-master@dev、2.0.0-alpha1 和 2.0.0-alpha3。
还有其他建议吗?几天前 Composer 更新工作正常。
最佳答案
在此处创建问题:https://github.com/FriendsOfSymfony/FOSUserBundle/issues/2048
短期修复 (为我工作 Symfony 3.0.* ):
services:
fos_user.doctrine_registry:
alias: doctrine
关于doctrine - Symfony 2.7/3 - Doctrine : You have requested a non-existent service "fos_user.doctrine_registry",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35031401/