This commit is contained in:
2021-03-03 19:59:14 +08:00
parent b164e0f2e4
commit 8493ebc796
+1 -1
View File
@@ -201,7 +201,7 @@ class Loader extends BaseObject
*/
private function explodeFileName(DirectoryIterator $path, string $namespace): string
{
$replace = str_replace(APP_PATH . '/', '', $path->getRealPath());
$replace = str_replace(APP_PATH . 'app', '', $path->getRealPath());
$replace = str_replace('.php', '', $replace);
$replace = str_replace(DIRECTORY_SEPARATOR, '\\', $replace);