Route
final class Route (View source)
Adds a route configuration to a method
This is a convenient way to add routes in project code but should not be used in libraries/packages that shall be configured for different use cases.
Constants
| private PRESERVED_DEFAULTS |
Magic route values cannot be set as default nor be contained as segments like The magic route value |
Methods
__construct(string $uriPattern, string $name = '', array $httpMethods = [], array $defaults = [])
No description
Details
__construct(string $uriPattern, string $name = '', array $httpMethods = [], array $defaults = [])
No description