Skip to content

Commit

Permalink
using attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
ricventu committed Nov 23, 2023
1 parent 7fbf093 commit 03eae37
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/RouteMaze.php
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ protected function addRoutesFromAttributes(string $class, Collection $pathParame
$methodName = $methodName->kebab();
$uri = $classPrefix->append('/', $methodName, $this->getParameters($method, $pathParameters));
foreach ($method->getAttributes() as $attribute) {
/** @var ReflectionAttribute $attribute */
$attribute = $attribute->newInstance();
if (is_subclass_of($attribute, Method::class)) {
$routes[] = Route::addRoute(
Expand Down

0 comments on commit 03eae37

Please sign in to comment.