Support Attribute-Based Route Registration
Add PHP 8 attributes (e.g. #[Route('GET', '/users')]
) to mark controller methods as routes. Provide a scanner/loader that reads attributes and registers them on the router automatically.
Add PHP 8 attributes (e.g. #[Route('GET', '/users')]
) to mark controller methods as routes. Provide a scanner/loader that reads attributes and registers them on the router automatically.