Skip to content

Commit

Permalink
solve namespace loader
Browse files Browse the repository at this point in the history
  • Loading branch information
alfonsmartinez committed May 17, 2016
1 parent bf9d905 commit aa2e3da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Config/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ private function load($classname)
foreach ($this->autoloads['psr-4'] as $key => $dir) {
if (substr($classname, 0, strlen($key)) == $key) {
$name = substr($classname, strlen($key));
require_once $dir . '/' . $name . ".php";
require_once $dir . '/' . str_replace('\\', '/', $name) . ".php";
return;
}
}
Expand Down

0 comments on commit aa2e3da

Please sign in to comment.