Skip to content

Commit

Permalink
fix carried options when using route attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
muhajirinlpu committed Dec 1, 2021
1 parent 47eb37f commit 5977fdf
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/RouteAttributeRegistrar.php
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ protected function registerMethod(ReflectionClass $class): void
}

$this->router->addRoute($httpMethods, $uri, $this->compileAction($action));

// reset attributes after registered
$this->attributes = [];
});
});
}
Expand Down

0 comments on commit 5977fdf

Please sign in to comment.