parse_vars(file_get_contents($file)); return parse_ini_string($contents, true); } /** * Returns the formatted config file contents. * * @param array $contents config array * @return string formatted config file contents * @throws \ConfigException */ protected function export_format($contents) { throw new \ConfigException('Saving config to ini is not supported at this time'); } }