/** * Parse Ini File * @access public * @param \Touchbase\Filesystem\File $file * @return VOID */ public function parseIniFile(\Touchbase\Filesystem\File $file) { if (!$file->exists()) { throw new \Exception("Config file '{$file->path}' could not be found"); } $this->_iniFileData = parse_ini_file($file->path, true); if (!$this->_iniFileData) { throw new \Exception("The ini file '{$file->path}' is corrupt or invalid"); } return $this; }