Symfony 2.7 / 3 - Doctrine: You have requested a non-existent service “fos_user.doctrine_registry”

感情迁移 提交于 2019-12-03 22:10:09

Issue created here: https://github.com/FriendsOfSymfony/FOSUserBundle/issues/2048

Short term fix (worked for me Symfony 3.0.* ) :

services:
    fos_user.doctrine_registry:
        alias: doctrine

My solution work like a charm... All works with huge mongo dataset

FIX For MongoDB using ODM:

# FIX doctrine registry service for 3.0 and 2.8 sf version
fos_user.doctrine_registry:
    alias: doctrine_mongodb
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!