Skip to content

Commit

Permalink
Loader: fixed including of paths with scheme in config loader (#153)
Browse files Browse the repository at this point in the history
  • Loading branch information
fprochazka authored and dg committed Aug 31, 2017
1 parent 6e62b4e commit a4b3be9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DI/Config/Loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function load($file, $section = null)
if (isset($data[self::INCLUDES_KEY])) {
Validators::assert($data[self::INCLUDES_KEY], 'list', "section 'includes' in file '$file'");
foreach ($data[self::INCLUDES_KEY] as $include) {
if (!preg_match('#([a-z]:)?[/\\\\]#Ai', $include)) {
if (!preg_match('#([a-z]+:)?[/\\\\]#Ai', $include)) {
$include = dirname($file) . '/' . $include;
}
$merged = Helpers::merge($this->load($include), $merged);
Expand Down

0 comments on commit a4b3be9

Please sign in to comment.