title: How do I read configuration settings from Symfony2 config.yml?
body: <p>I have added a setting to my config.yml file as such:</p>
  
  <pre><code>app.config:
      contact_email: somebody@gmail.com
      ...
  </code></pre>
  
  <p>For the life of me, I can't figure out how to read it into a variable. I tried something like this in one of my controllers:</p>
  
  <pre><code>$recipient =
  $this-&gt;container-&gt;getParameter('contact_email');
  </code></pre>
  
  <p>But I get an error saying:</p>
  
  <blockquote>
    <p>The parameter "contact_email" must be
    defined.</p>
  </blockquote>
  
  <p>I've cleared my cache, I also looked everywhere on the Symfony2 reloaded site documentation, but I can't find out how to do this.</p>
  
  <p>Probably just too tired to figure this out now. Can anyone help with this?</p>