_path . $key; } $file .= $this->_extension; if (!$checkExists || is_file($file)) { return $file; } if (is_file(realpath($file))) { return realpath($file); } throw new Exception(sprintf('Could not load configuration file: %s', $file)); } }