title: Symfony get parameters from config files in the controllers
body: <p>I'm using <a href="https://symfony.com/" rel="nofollow noreferrer">Symfony 4.4</a> with <a href="https://symfony.com/doc/current/email.html" rel="nofollow noreferrer">swiftmailer</a>.</p>
  
  <p>I have this configuration in the <code>dev/swiftmailer.php</code></p>
  
  <pre><code>$container-&gt;loadFromExtension
  (
     'swiftmailer',
      [
         'delivery_addresses' =&gt;
              [
                  'test@gmail.com',
              ],
          'url' =&gt; $mailHostname,
          'port' =&gt; $mailPort
      ]
  );
  </code></pre>
  
  <p>But I'am not able to get the setting information from my controller:</p>
  
  <pre><code>public function XController(ContainerBagInterface $containerBag)
  {
  $containerBag-&gt;has("swiftmailer.mailer.default.delivery_addresses"); //this return true;
  $containerBag-&gt;has("swiftmailer.mailer.default.url"); //this return false;
  
  </code></pre>
  
  <p>Why the second assert return false and the value is not set by the config file? </p>