Closed mklewitz closed 2 years ago
I'd say if this works then let's use it :) Although recipes are not provided by this repository, please open an issue in https://github.com/symfony/recipes, feel free to link to this one. I'm not that familiar with recipes to know how to differ them basing on Symfony's version so I won't be making that change myself.
The recipe still refers to Symfony\Component\Cache\DoctrineProvider which isn't available in Symfony 6 anymore.
So setting up a minimal test case results in a fatal error in prod env (dev is working fine):
results in :
The solution is to use another recipe for Symfony >= 5.4 and change the services section in config/packages/prod/doctrine_mongodb.yaml.
Before:
After: