- Removing annotations replaced by attributes
This commit is contained in:
parent
3622e11fcc
commit
0061a8abb0
|
@ -39,8 +39,8 @@ class RouteFetcher {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$this->annotations = [
|
$this->annotations = [
|
||||||
'object' => [ Annotation\Object\Route::class, Attribute\Object\Route::class ],
|
'object' => [ Attribute\Object\Route::class ],
|
||||||
'method' => [ Annotation\Method\Route::class ],
|
'method' => [ Attribute\Method\Route::class ],
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -111,8 +111,8 @@ class RouteFetcher {
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( isset($annotations['method']) ) {
|
if ( isset($annotations['method']) ) {
|
||||||
$routeList = $objectResolver->getAnnotationListFromClassname( $annotations['method'], false );
|
$routeList = $objectResolver->getAttributeListFromClassname( $annotations['method'], false );
|
||||||
;
|
|
||||||
foreach($routeList as $func => $routes) {
|
foreach($routeList as $func => $routes) {
|
||||||
if (is_array($routes)) {
|
if (is_array($routes)) {
|
||||||
foreach ($routes as $route) {
|
foreach ($routes as $route) {
|
||||||
|
|
Loading…
Reference in New Issue