Commit d60d1626 authored by 杨培's avatar 杨培

修复自动加载在命名空间改变后失效的问题

parent 4bd23451
...@@ -8,9 +8,9 @@ ...@@ -8,9 +8,9 @@
function internalApiAutoloader($className) { function internalApiAutoloader($className) {
if (substr($className, 0, 12) == 'internalApi\\') { if (substr($className, 0, 12) == 'internalApi\\') {
$file = dirname(__DIR__).DIRECTORY_SEPARATOR.str_replace('\\', DIRECTORY_SEPARATOR, $className).'.php'; $file = __DIR__.DIRECTORY_SEPARATOR.substr(str_replace('\\', DIRECTORY_SEPARATOR, $className), 12).'.php';
if (is_file($file)) { if (is_file($file)) {
require $file; include $file;
} }
} }
} }
......
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