5 use merry\Config
as Container
;
7 class Config
extends Container
9 function addConfig(Config
$config) {
10 foreach ($config as $sub => $conf) {
11 /* one level down should suffice, i.e. $config->github->client = {id,secret,scope} */
12 if ($conf instanceof Config
) {
13 foreach ($conf as $key => $val) {
14 $this->$sub->$key = $val;