title: Symfony : How to access configuration in controller
body: <p>This may be a silly question, but i can't see how to access this data : </p>
  
  <p>In the main app/config/config.yml, i have the general configuration data for my application.</p>
  
  <pre><code>parameters:    #accessible by getParameter()
      locale: fr
      # ...
  fos_user:    #accessible by ???
      #...
      registration:
          form:
              from_email:
                  address:     mymail@mydomain.fr
                  sender_name: TheSenderName
  </code></pre>
  
  <p>In my custom bundle i can access the parameters from that config.yml file with :</p>
  
  <pre><code>$this-&gt;container-&gt;getParameter('locale'); //gives me "fr" as expected
  </code></pre>
  
  <p>But how can i access the non parameters configuration values ?</p>
  
  <p>i would like here to get the adress defined in te FOS User bundle configuration : 
  I can't do </p>
  
  <pre><code>$admin_adress = $this-&gt;container-&gt;getParameter('fos_user.registration.confirmation.from_email.address');
  </code></pre>
  
  <p>What is the right way to access thoses ?</p>
  
  <p>Edit : 
  Yes i wanted to access this config data from FOS User Bundle (here in the example, but it could be any), inside a controller or whatever in my bundle.</p>