ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
FastRoute\DummyRouteCollector Class Reference
+ Inheritance diagram for FastRoute\DummyRouteCollector:
+ Collaboration diagram for FastRoute\DummyRouteCollector:

Public Member Functions

 __construct ()
 
 addRoute ($method, $route, $handler)
 
- Public Member Functions inherited from FastRoute\RouteCollector
 __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

- Protected Attributes inherited from FastRoute\RouteCollector
 $routeParser
 
 $dataGenerator
 
 $currentGroupPrefix
 

Detailed Description

Definition at line 95 of file RouteCollectorTest.php.

Constructor & Destructor Documentation

◆ __construct()

FastRoute\DummyRouteCollector::__construct ( )

Definition at line 99 of file RouteCollectorTest.php.

100  {
101  }

Member Function Documentation

◆ addRoute()

FastRoute\DummyRouteCollector::addRoute (   $method,
  $route,
  $handler 
)

Definition at line 103 of file RouteCollectorTest.php.

References $handler.

104  {
105  $route = $this->currentGroupPrefix . $route;
106  $this->routes[] = [$method, $route, $handler];
107  }
$handler

Field Documentation

◆ $routes

FastRoute\DummyRouteCollector::$routes = []

Definition at line 97 of file RouteCollectorTest.php.


The documentation for this class was generated from the following file: