Skip to content

Commit

Permalink
Merge pull request #8 from solleer/patch-5
Browse files Browse the repository at this point in the history
Update checking for PSR Module from 0 to 4
  • Loading branch information
TRPB authored Jun 29, 2017
2 parents 5ef9f5d + cfbb262 commit 5ee6416
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions module/Library.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function locate($className) {
if (isset($json->include)) foreach ($json->include as $file) require_once $this->libraryDir . DIRECTORY_SEPARATOR . $rootNs . $file;

foreach ($json->modules as $key => $value) {
if ($key == 'Axel\\Module\\PSR0') {
if ($key == 'Axel\\Module\\PSR4') {
$value[0] = $this->libraryDir . DIRECTORY_SEPARATOR . $rootNs . $value[0];
}
$module = new $key(...$value);
Expand All @@ -35,4 +35,4 @@ public function locate($className) {
}
}
}
}
}

0 comments on commit 5ee6416

Please sign in to comment.