问题描述
今天做作曲家更新突然出现以下错误:
Doing a composer update today suddenly getting the following error:
[SymfonyComponentDependencyInjectionExceptionServiceNotFoundException]您请求的服务不存在fos_user.doctrine_registry".
composer 执行 cache:clear --no-warmup
命令时.
when composer is executing the cache:clear --no-warmup
command.
搜索找到了与从学说转换为 MongoDB 相关的答案,但这些解决方案对我不起作用.我正在使用教义.我试过 Fosuserbundle dev-master、dev-master@dev、2.0.0-alpha1 和 2.0.0-alpha3.
Search found an answer related to converting from doctrine to MongoDB but the solutions are not working for me. I am using Doctrine. I've tried Fosuserbundle dev-master, dev-master@dev, 2.0.0-alpha1 and 2.0.0-alpha3.
还有其他建议吗?几天前 Composer 更新运行良好.
Any other suggestions? Composer update was working fine a couple of days ago.
推荐答案
这里创建的问题:https://github.com/FriendsOfSymfony/FOSUserBundle/issues/2048
短期修复(适用于 Symfony 3.0.*):
Short term fix (worked for me Symfony 3.0.* ) :
services:
fos_user.doctrine_registry:
alias: doctrine
这篇关于Symfony 2.7/3 - Doctrine:您请求了一个不存在的服务“fos_user.doctrine_registry"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!