I have a second entity manager, and i want to get parameters from a database and change the DATABASE_URL to connect to another database.
# config/packages/doctrine.yaml
my_entity:
url: '%DATABASE_URL%'
driver: 'pdo_mysql'
server_version: '5.7'
charset: utf8mb4
I try to add a parameter from the process function from Kernel.php, but it's apparently run only one time.