title: Symfony: generate prod url in dev environment
body: <p>I am wondering if it is possible to choose environment when generating urls with the symfony routing component.</p>
  
  <p>In a controller</p>
  
  <pre><code>$this-&gt;generateUrl($route, $params);
  </code></pre>
  
  <p>generates <code>/</code> in prod envrionment and <code>/app_dev.php</code> in dev.</p>
  
  <p>There doesn't seem to be a parameter for the environment so that you could generate productive urls in dev environment. I just don't want to use something like str_replace all the time.</p>
  
  <p>This would be great:</p>
  
  <pre><code>$this-&gt;generateUrl($route, $params, 'prod');
  </code></pre>
  
  <p>For your understanding, I am working on a cms project where I have to match uris against the database where they are stored without app_dev.php.</p>
  
  <p>Any ideas?</p>