title: Global parameters in routing, using annotations
body: <p>I would like to restrict some of the routing parameters, but as it is a complex and repeating rule, I would like to have it set in the projects config file.</p>
  
  <p>The solution is well described in Symfony's documentation <a href="http://symfony.com/doc/current/cookbook/routing/service_container_parameters.html" rel="nofollow">here</a>, but what is omitted is how to use it with annotation routing. It's neither shown nor said it can't be done.</p>
  
  <p>Question is, how to achieve this?</p>