$staticRoutes
$staticRoutes : array<mixed,mixed[]>
addRoute(string $httpMethod, array $routeData, mixed $handler)
Adds a route to the data generator. The route data uses the same format that is returned by RouterParser::parser().
The handler doesn't necessarily need to be a callable, it can be arbitrary data that will be returned when the route matches.
string | $httpMethod | |
array | $routeData | |
mixed | $handler |