title: Symfony2: routing and parameters
body: <p>I have param in /app/config/parameters.ini:</p>
  
  <pre><code>[parameters]
      my_param=123
  </code></pre>
  
  <p>And in my routing.yml file I have next:</p>
  
  <pre><code>url_name:
      pattern: /test
      defaults:
          _controller: MyBundle:MyController:test
      requirements:
          url_param_1:  %my_param%
  </code></pre>
  
  <p>I want for url_param_1 be required. If user go to /test - he'll get 404 exception.
  If user got to /test?url_param_1=%my_param% (in my example it is /test?url_param_1=123) - all ok.
  Can I do it automatically without check validation in controller?</p>