public function parse(Config_Tree $defaults = null) { $config = $defaults ? $defaults : Config::Tree(); foreach (parse_ini_file($this->path, true) as $section => $items) { $branch = $config->branch($section); foreach ($items as $k => $v) { $branch->{$k} = $v; } } return $config; }