title: Symfony2: How to inject ALL parameters in a service?
body: <p>How can I inject ALL parameters in a service?</p>
  
  <p>I know I can do: <code>arguments: [%some.key%]</code> which will pass the <code>parameters: some.key: "value"</code> to the service __construct.</p>
  
  <p>My question is, how to inject everything that is under <code>parameters</code> in the service?</p>
  
  <p>I need this in order to make a navigation manager service, where different menus / navigations / breadcrumbs are to be generated according to different settings through all of the configuration entries.</p>
  
  <p>I know I could inject as many parameters as I want, but since it is going to use a number of them and is going to expand as time goes, I think its better to pass the whole thing right in the beginning.</p>
  
  <p>Other approach might be if I could get the parameters inside the service as you can do in a controller <code>$this -&gt; container -&gt; getParameter('some.key');</code>, but I think this would be against the idea of Dependency Injection?</p>
  
  <p>Thanks in advance!</p>