title: How to force https for prod but http for dev environment?
body: <p>I have a symfony2 application.</p>
  
  <p>On the prod server I want all my routes to go via https, while in dev I want to be able to use http. How do I achieve that with symfony2 alone? I do not want to touch the webserver configuration.</p>
  
  <p>I tried adding this in my <code>routing.yml</code></p>
  
  <pre><code>myBundle:
      resource: "@MyBundle/Controller/"
      type:     annotation
      prefix:   /
      schemes:  [https]
  </code></pre>
  
  <p>while having this in my <code>routing_dev.yml</code>:</p>
  
  <pre><code>myBundle:
      resource: "@MyBundle/Controller/"
      type:     annotation
      prefix:   /
      schemes:  [http]
  
  _main:
      resource: routing.yml
  </code></pre>
  
  <p>It still wants to go to https even in dev mode.</p>