Aviat\Director\RouteConfig
Class to configure routes
Synopsis
class RouteConfig
{
- // members
- protected array $map = ;
- // methods
- public RouteConfig any()
- public RouteConfig delete()
- public RouteConfig get()
- public RouteConfig head()
- public RouteConfig options()
- public RouteConfig patch()
- public RouteConfig post()
- public RouteConfig put()
- public array getConfig()
- public RouteConfig setBaseConfig()
- public RouteConfig setRouteConfig()
- public RouteConfig loadFromArray()
- protected RouteConfig addRouteToMap()
Coverage
Methods | 76.92% | 10 / 13 |
Lines | 45.45% | 15 / 33 |
Members
protected
- $map
—
array
Route mapping
Methods
protected
- addRouteToMap() — Helper method to add a route to the internal map
public
- any() — Add a route matching any HTTP verb
- delete() — Add a route matching a DELETE HTTP request
- get() — Add a route matching a GET HTTP request
- getConfig() — Returns the routing config array
- head() — Add a route matching a HEAD HTTP request
- loadFromArray() — Batch set all the route options with one array
- options() — Add a route matching a OPTIONS HTTP request
- patch() — Add a route matching a PATCH HTTP request
- post() — Add a route matching a POST HTTP request
- put() — Add a route matching a PUT HTTP request
- setBaseConfig() — Set route config defaults
- setRouteConfig() — Batch set the routes