_directory = trim($directory, '/'); } /** * Load and merge all of the configuration files in this group. * * $config->load($name); * * @param string $group configuration group name * @return $this current object * @uses Kohana::load */ public function load($group) { $config = array(); if ($files = Kohana::find_file($this->_directory, $group, NULL, TRUE)) { foreach ($files as $file) { // Merge each file to the configuration array $config = Arr::merge($config, Kohana::load($file)); } } return $config; } }