title: Creating a multi tenant application using Symfony2
body: <p>I am trying to create a multi tenant application using Symfony2. </p>
  
  <p>Does anybody know how to select the database to connect to based on the domain the application is reached through? eg. company1.domain.com => db1, company2.domain.com => db2</p>
  
  <p>I have found plugins that may help like sfMultiTenantPlugin, but all seem to have drawbacks.</p>
  
  <p>I just need the parameters.ini file to have a different database_name value based on the domain.</p>