RouteGroup
- Full name:
\Qubus\Routing\Route\RouteGroup
- This class implements:
\Qubus\Routing\Interfaces\Mappable
Properties
router
prefix
domain
subDomain
namespace
middlewares
Methods
__construct
Parameters:
Parameter | Type | Description |
---|---|---|
$params | string|array | |
$router | \Qubus\Routing\Router |
appendPrefixToUri
Parameters:
Parameter | Type | Description |
---|---|---|
$uri | string |
map
Add a route to the map
public map(array $verbs, string $uri, callable|string $callback): \Qubus\Routing\Interfaces\Routable
Parameters:
Parameter | Type | Description |
---|---|---|
$verbs | array | |
$uri | string | |
$callback | callable|string |
Throws:
group
Add route group
Parameters:
Parameter | Type | Description |
---|---|---|
$params | array|string | |
$callback | callable |
Inherited methods
map
Add a route to the map.
public map(array $verbs, string $uri, callable|string $callback): \Qubus\Routing\Interfaces\Routable
- This method is abstract.
Parameters:
Parameter | Type | Description |
---|---|---|
$verbs | array | |
$uri | string | |
$callback | callable|string |
any
Add a route that responds to any HTTP method.
Parameters:
Parameter | Type | Description |
---|---|---|
$uri | string | |
$callback | callable|string |
Throws:
get
Add a route that responds to GET HTTP method.
Parameters:
Parameter | Type | Description |
---|---|---|
$uri | string | |
$callback | callable|string |
Throws:
post
Add a route that responds to POST HTTP method.
Parameters:
Parameter | Type | Description |
---|---|---|
$uri | string | |
$callback | callable|string |
Throws:
patch
Add a route that responds to PATCH HTTP method.
Parameters:
Parameter | Type | Description |
---|---|---|
$uri | string | |
$callback | callable|string |
Throws:
put
Add a route that responds to PUT HTTP method.
Parameters:
Parameter | Type | Description |
---|---|---|
$uri | string | |
$callback | callable|string |
Throws:
delete
Add a route that responds to DELETE HTTP method.
Parameters:
Parameter | Type | Description |
---|---|---|
$uri | string | |
$callback | callable|string |
Throws:
head
Add a route that responds to HEAD HTTP method.
Parameters:
Parameter | Type | Description |
---|---|---|
$uri | string | |
$callback | callable|string |
Throws:
options
Add a route that responds to OPTIONS HTTP method.
Parameters:
Parameter | Type | Description |
---|---|---|
$uri | string | |
$callback | callable|string |
Throws:
connect
Add a route that responds to CONNECT HTTP method.
Parameters:
Parameter | Type | Description |
---|---|---|
$uri | string | |
$callback | callable|string |
Throws:
trace
Add a route that responds to TRACE HTTP method.
Parameters:
Parameter | Type | Description |
---|---|---|
$uri | string | |
$callback | callable|string |
Throws:
Automatically generated on 2025-10-13