FOSOAuthServerBundle
FOSOAuthServerBundle copied to clipboard
SF4 mongodb not finding odm
I'm trying to update from SF3 to SF4 and i'm getting strange error:
The service "fos_oauth_server.client_manager.default" has a dependency on a non-existent service "doctrine.odm.mongodb.document_manager".
Here is my composer.json: `"php": ">=7.0.0", "symfony/symfony": "4.", "symfony/process": "", "symfony/orm-pack": "", "symfony/webpack-encore-bundle": "", "symfony/swiftmailer-bundle": "", "symfony/monolog-bundle": "", "incenteev/composer-parameter-handler": "", "knplabs/knp-paginator-bundle": "", "whiteoctober/breadcrumbs-bundle": "^1.2", "friendsofsymfony/user-bundle": "", "doctrine/mongodb-odm-bundle": "", "doctrine/mongodb-odm": "*",
"stof/doctrine-extensions-bundle": "*",
"devster/guzzle-wsse-plugin": "*",
"guzzlehttp/guzzle": "*",
"knplabs/knp-time-bundle": "*",
"willdurand/js-translation-bundle": "*",
"php-amqplib/rabbitmq-bundle": "*",
"pear/file_marc": "*",
"friendsofsymfony/elastica-bundle": "*",
"imagine/imagine": "*",
"yectep/phpspreadsheet-bundle": "^0.0.5",
"friendsofsymfony/rest-bundle": "^3.1",
"friendsofsymfony/oauth-server-bundle": "dev-master",
"nelmio/api-doc-bundle": "^2.13",
"buzzingpixel/twig-switch": "^1.0",
"jjalvarezl/pdfjs-viewer-bundle": "^3.0",
"menarasolutions/geographer": "^0.3.10",
"menarasolutions/geographer-ru": "^0.2.2",
"fluentdom/fluentdom": "^8.0",
"jms/serializer-bundle": "^4.0"`
Any Solution?
May be you can try this. Add this in your services.yaml file
doctrine.odm.mongodb.document_manager: alias: doctrine_mongodb.odm.document_manager public: true