title: Symfony2: how to get config parameters in Form classes
body: <p>If I am inside a controller, I can easily read the config parameters using:</p>
  
  <pre><code>$this-&gt;container-&gt;getParameter('profession');
  </code></pre>
  
  <p>But when I am in some other class, say a Form type, how can I get hold of the config parameters?</p>
  
  <pre><code>$container = new Container(); 
  $container-&gt;getParameter('profession');
  </code></pre>
  
  <p>The above code shouldn't and doesn't work. </p>