Commit 561403a7 authored by Andrzej Prusinowski's avatar Andrzej Prusinowski

handle windows directory separator

parent 352e4abb
......@@ -108,7 +108,7 @@ final class Esse extends AbstractExtension
continue;
}
$key = mb_substr($file->getRealPath(), mb_strlen($this->entriesDir) + 1, -5);
$key = str_replace('\\', '/', mb_substr($file->getRealPath(), mb_strlen($this->entriesDir) + 1, -5));
$entry = $this->get($key);
if ($entry && (!$type || $entry->type() === $type)) {
......@@ -268,7 +268,7 @@ final class Esse extends AbstractExtension
continue;
}
$key = mb_substr($file->getRealPath(), mb_strlen($this->entriesDir) + 1, -5);
$key = str_replace('\\', '/', mb_substr($file->getRealPath(), mb_strlen($this->entriesDir) + 1, -5));
yield $key => $this->suml->parseFile($file->getRealPath());
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment