Declares a DELETE-only route for a controller action.
Declares supported file extensions for generated routes.
Declares a GET-only route for a controller action.
Declares a HEAD-only route for a controller action.
Declares middleware names or inline closures that should be applied to matching routes.
String arguments reference registered middleware or middleware group names.
Closure arguments define inline middleware with the signature:
static function(ServerRequestInterface $request, RequestHandlerInterface $handler): ResponseInterface
Declares an OPTIONS-only route for a controller action.
Declares a PATCH-only route for a controller action.
Declares a POST-only route for a controller action.
Declares a routing prefix and optional path override for a controller.
Declares a PUT-only route for a controller action.
Declares REST resource routes for a controller.
Declares a route for a controller action using PHP attributes.
Declares the default route class used by attribute routes on a controller.
Declares shared path, name, and option defaults for controller routes.