Methods
-
Adds a route to the data generator. The route data uses the
-
getData() : voidReturns dispatcher data in some unspecified format, which
Methods Details
-
public function addRoute(variable $httpMethod, variable $routeData, variable $handler)
Adds a route to the data generator. The route data uses thesame 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. -
public function getData()
Returns dispatcher data in some unspecified format, whichdepends on the used method of dispatch.