Is it possible to modify parameters.yml for each request based on domain?
I want to use one application for a few websites what differ only in database connection and ext.
There are way to use something like parameters.php where are i can get app configuration based on domain and other request parameters?
How to be with Symfony's cache?
If you are using doctrine bundle, this may help you.
You should first define both connections in parameters.yml
Then you define 2 dbal connections and 2 orm entity managers in your config.yml:
Then you need to pass the domain to your controllers, services.. and load the correct entity manager.
An example using a controller: