-
-
-
Constructs a route collector.
-
Adds a route to the collection.
-
getData() : voidReturns the collected route data, as provided by the data generator.
-
public function setRouteParser(variable $routeParser)
-
public function setDataGenerator(variable $dataGenerator)
-
public function __construct(variable $routeParser, variable $dataGenerator)
Constructs a route collector. -
public function addRoute(variable $httpMethod, string $route, variable $handler)
Adds a route to the collection.The syntax used in the $route string depends on the used route parser. -
public function getData()
Returns the collected route data, as provided by the data generator.