title: Symfony - Defining a route only in dev. environment
body: <p>I'm using SF2 and I created some routes helping the debugging of the project:</p>
  
  <pre class="lang-cs prettyprint-override"><code>widget_debug_page:
      path:       /debug/widget/{widgetName}
      defaults:   { _controller: WidgetBundle:Debug:default }
  </code></pre>
  
  <p>The problem is that this route MUST never be reachable when going in production.</p>
  
  <p>I could not find a parameter to specify the environment.</p>