- Removing annotations replaced by attributes

This commit is contained in:
Dave M. 2023-11-03 19:54:24 -04:00
parent 3622e11fcc
commit 0061a8abb0
1 changed files with 4 additions and 4 deletions

View File

@ -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) {