title: Symfony 4 - accessing parameters inside a Controller
body: <p>I'm trying to get some parameters defined in the <code>services.yaml</code> into one of my controllers, but I can't seem to find anything that works.</p>
  
  <p>The idea is that I want to have a common string inside all of my controllers that defines the prefix of all the routes inside my application, for example <code>/api/v1/</code>.</p>
  
  <p>I'm trying to store that string inside the <code>services.yaml</code> file as it seems the appropriate place to do it.</p>
  
  <p>Also, I would like to use the contents of these parameters inside the method annotation...</p>
  
  <p>Any ideas?</p>