diff --git a/Annotation/Loader.php b/Annotation/Loader.php index 5e8cb8d8..5d43a1a0 100644 --- a/Annotation/Loader.php +++ b/Annotation/Loader.php @@ -265,7 +265,7 @@ class Loader extends BaseObject private function each(string $filePath): static { $tree = null; - $filePath = str_replace(directory('app'), '', $filePath); + $filePath = str_replace(APP_PATH, '', $filePath); $directory = $this->splitDirectory($filePath);