Default configuration.
public array $defaultConfig
Internal controllers.
private Loader $routeLoader
public __construct({Array})
Parameter | Type | Description |
---|
$config | Map | |
public initialise({Array})
Parameter | Type | Description |
---|
$request | Request | |
Adds a route to the router.
This method sets the router for the given route and then adds the route to the list of routes managed by this router.
Parameter | Type | Description |
---|
$route | Route | the route to be added |
Sets the current route for the router.
This method assigns the provided route to the router and sets the router instance within the route.
Parameter | Type | Description |
---|
$route | Route | the route to be set |
Retrieves the current route.
public getErrorController({Array})
Parameter | Type | Description |
---|
$path | string | |
$callable | mixed | |
Parameter | Type | Description |
---|
$path | string | |
$callable | mixed | |
Parameter | Type | Description |
---|
$path | string | |
$callable | mixed | |
Parameter | Type | Description |
---|
$path | string | |
$callable | mixed | |
Parameter | Type | Description |
---|
$path | string | |
$callable | mixed | |
Parameter | Type | Description |
---|
$path | string | |
$callable | mixed | |
Parameter | Type | Description |
---|
$path | string | |
$callable | mixed | |
Parameter | Type | Description |
---|
$callable | mixed | |
$path | string | |
Parameter | Type | Description |
---|
$methods | string | |
$path | string | |
$callable | mixed | |
Evaluates the given request and matches it against the defined routes.
private evaluateRequest({Array})
Parameter | Type | Description |
---|
$request | Request | the request to evaluate |
Generated by Hazaar API Doc Generator