Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Commit

Permalink
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ModuleAutoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,10 @@ public function autoload($class)
foreach ($this->paths as $path) {
$path = $path . $moduleClassPath;

if ($path == '.' || substr($path, 0, 2) == './' || substr($path, 0, 2) == '.\\') {
$path = realpath('.') . substr($path, 1);
}

$classLoaded = $this->loadModuleFromDir($path, $class);
if ($classLoaded) {
return $classLoaded;
Expand Down

0 comments on commit 748b3ac

Please sign in to comment.