ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Public Member Functions | |
__construct () | |
addRoute ($method, $route, $handler) | |
Adds a route to the collection. More... | |
![]() | |
__construct (RouteParser $routeParser, DataGenerator $dataGenerator) | |
Constructs a route collector. More... | |
addRoute ($httpMethod, $route, $handler) | |
Adds a route to the collection. More... | |
addGroup ($prefix, callable $callback) | |
Create a route group with a common prefix. More... | |
get ($route, $handler) | |
Adds a GET route to the collection. More... | |
post ($route, $handler) | |
Adds a POST route to the collection. More... | |
put ($route, $handler) | |
Adds a PUT route to the collection. More... | |
delete ($route, $handler) | |
Adds a DELETE route to the collection. More... | |
patch ($route, $handler) | |
Adds a PATCH route to the collection. More... | |
head ($route, $handler) | |
Adds a HEAD route to the collection. More... | |
getData () | |
Returns the collected route data, as provided by the data generator. More... | |
Data Fields | |
$routes = [] | |
Additional Inherited Members | |
![]() | |
$routeParser | |
$dataGenerator | |
$currentGroupPrefix | |
Definition at line 95 of file RouteCollectorTest.php.
FastRoute\DummyRouteCollector::__construct | ( | ) |
Definition at line 99 of file RouteCollectorTest.php.
FastRoute\DummyRouteCollector::addRoute | ( | $httpMethod, | |
$route, | |||
$handler | |||
) |
Adds a route to the collection.
The syntax used in the $route string depends on the used route parser.
string | string[] | $httpMethod | |
string | $route | |
mixed | $handler |
Reimplemented from FastRoute\RouteCollector.
Definition at line 103 of file RouteCollectorTest.php.
References $handler.
FastRoute\DummyRouteCollector::$routes = [] |
Definition at line 97 of file RouteCollectorTest.php.