This commit is contained in:
2021-10-28 15:39:35 +08:00
parent ab451a27b3
commit ce92f7dc7b
+1 -1
View File
@@ -214,7 +214,7 @@ class Loader extends BaseObject
*/
private function explodeFileName(DirectoryIterator $path, string $namespace): string
{
$replace = str_replace(APP_PATH . 'app', '', $path->getRealPath());
$replace = str_replace(APP_PATH, '', $path->getRealPath());
$replace = str_replace('.php', '', $replace);
$replace = str_replace(DIRECTORY_SEPARATOR, '\\', $replace);