diff --git a/Annotation/Loader.php b/Annotation/Loader.php index 060f0a3a..cfefeb56 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -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);