1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-25 10:33:18 +01:00

[Service] Fixing config file aliases for JSON includes

This commit is contained in:
Michael Dowling 2012-09-07 10:24:07 -07:00
parent 0318412538
commit e850c7ddba

View File

@ -59,7 +59,7 @@ class JsonLoader
// Handle includes
if (!empty($data['includes'])) {
foreach ($data['includes'] as $path) {
if ($path[0] != DIRECTORY_SEPARATOR) {
if ($path[0] != DIRECTORY_SEPARATOR && !isset($this->aliases[$path])) {
$path = dirname($jsonFile) . DIRECTORY_SEPARATOR . $path;
}
$data = $this->mergeJson($this->parseJsonFile($path), $data);