From 0061a8abb0084afb682907422c7b4fbab19cb05f Mon Sep 17 00:00:00 2001 From: Dave Mc Nicoll Date: Fri, 3 Nov 2023 19:54:24 -0400 Subject: [PATCH] - Removing annotations replaced by attributes --- src/RouteFetcher.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/RouteFetcher.php b/src/RouteFetcher.php index 5a884de..21eb1e6 100644 --- a/src/RouteFetcher.php +++ b/src/RouteFetcher.php @@ -39,8 +39,8 @@ class RouteFetcher { } else { $this->annotations = [ - 'object' => [ Annotation\Object\Route::class, Attribute\Object\Route::class ], - 'method' => [ Annotation\Method\Route::class ], + 'object' => [ Attribute\Object\Route::class ], + 'method' => [ Attribute\Method\Route::class ], ]; } } @@ -111,8 +111,8 @@ class RouteFetcher { } if ( isset($annotations['method']) ) { - $routeList = $objectResolver->getAnnotationListFromClassname( $annotations['method'], false ); -; + $routeList = $objectResolver->getAttributeListFromClassname( $annotations['method'], false ); + foreach($routeList as $func => $routes) { if (is_array($routes)) { foreach ($routes as $route) {