title: Get the dbname on twig silex/symfony
body: <p>I'm searching how i can get the "data base name" on my twig view on silex and symfony2 or 3.</p>
  
  <p>I found that i can go on "app.db" and there is "_params" and "db name" witch are twig object and protected so i can access to it.</p>
  
  <p>I have tried :</p>
  
  <ul>
  <li>app.db._params.dbname</li>
  <li>app.db.dbname</li>
  <li>app.db.get('dbname')</li>
  <li>app.db.get('_params')</li>
  <li>app.db.get('params')</li>
  </ul>
  
  <p>There is an other solution with out set the variable in the controller??
  Thank in advance</p>