@@ 125-131 (lines=7) @@ | ||
122 | } |
|
123 | ||
124 | // The configuration is found by absolute path |
|
125 | if (is_readable($item) && is_file($item)) { |
|
126 | $found = true; |
|
127 | $config["file"] = $item; |
|
128 | $config["config"] = require $item; |
|
129 | $this->config = $config; |
|
130 | return $config; |
|
131 | } |
|
132 | ||
133 | foreach ($this->dirs as $dir) { |
|
134 | $path = "$dir/$item"; |
|
@@ 138-142 (lines=5) @@ | ||
135 | $file = "$path.php"; |
|
136 | ||
137 | // The configuration is found in a file |
|
138 | if (is_readable($file) && is_file($file)) { |
|
139 | $found = true; |
|
140 | $config["file"] = $file; |
|
141 | $config["config"] = require $file; |
|
142 | } |
|
143 | ||
144 | // The configuration is found in a directory |
|
145 | if (is_readable($path) && is_dir($path)) { |