I'm working on a blog platform, each blog has it own database.
I need to switch database connection on the fly.
I understand the documentation
http://symfony.com/doc/current/doctrine/multiple_entity_managers.html
But i would like to avoid to add everyting in the config file as there are more
than 50 databases.
I ve been trying to adapt this code to symfony 4 but i couldn t make it work https://stackoverflow.com/a/9291896/9726140
Thank you