title: How to get the configuration for database adapters
body: <p>I'm using more than one database. So I have this kind of configuration in my <strong>global.php</strong> file:</p>
  
  <pre><code>return [
  'db' =&gt; [
      ...
      ],
      'adapters' =&gt; [
          'adapter1' =&gt; [
              ...
              ]
          ],
          'adapter2' =&gt; [
              ...
              ]
          ]
      ]
  ]
  ];
  </code></pre>
  
  <p>And my goal is to get the configuration of all my adapters in one instruction. I don't know if it is possible.
  There is this instruction to get one adapter :</p>
  
  <pre><code>$sm-&gt;get('adapter1');
  </code></pre>
  
  <p>But I want to have something like that:</p>
  
  <pre><code>$sm-&gt;get('adapters');
  </code></pre>
  
  <p>I didn't find any solution right now so I decided to ask the question here...
  I suppose this is something possible because the file just containing a simple array... </p>
  
  <p>Yours</p>
  
  <p><strong>EDIT</strong> :</p>
  
  <p>I tried</p>
  
  <pre><code>$sm-&gt;get('config')['db']['adapters'];
  </code></pre>
  
  <p>But it returns an array of string. Actually, I would like an array of Objects. Objects of Adapter. The same way I get an adapter in this way :</p>
  
  <pre><code>$sm-&gt;get('adapter1');
  </code></pre>
  
  <p>Yours</p>