data[$name] = $data; } } /** * Get the specific parameter from the specified file * * @throws \InvalidArgumentException * @param string $file * @param string $key * @return mixed */ public function get($file, $key=NULL) { if ( ! array_key_exists($file, $this->data)) { throw new \InvalidArgumentException("The config file doesn't exist"); } return (is_null($key)) ? $this->data[$file] : $this->data[$file][$key]; } } // End of Core/Config.php