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