$ident
$ident : string
Route identifier/name
Base "Route" configuration.
setIdent(string $ident) : \Charcoal\App\Route\RouteConfig
Set route identifier
string | $ident | Route identifier. |
If the identifier is not a string.
Chainable
setRoute(string $pattern) : \Charcoal\App\Route\RouteConfig
Set route pattern.
string | $pattern | Route pattern. |
If the pattern argument is not a string.
Chainable
setGroups(array<mixed,string>|array<mixed,\Charcoal\App\Route\RouteGroup> $groups) : \Charcoal\App\Route\RouteConfig
Set parent route groups
array<mixed,string>|array<mixed,\Charcoal\App\Route\RouteGroup> | $groups | The parent route groups. |
Chainable
addGroup(string|\Charcoal\App\Route\RouteGroup $group) : \Charcoal\App\Route\RouteConfig
Add parent route group
string|\Charcoal\App\Route\RouteGroup | $group | The parent route group. |
If the group is invalid.
Chainable
setController(string $controller) : \Charcoal\App\Route\RouteConfig
Set route view controller classname
string | $controller | Route controller name. |
If the route view controller is not a string.
Chainable
setMethods(array<mixed,string> $methods) : \Charcoal\App\Route\RouteConfig
Set route methods
array<mixed,string> | $methods | The route's supported HTTP methods. |
Chainable
addMethod(string $method) : \Charcoal\App\Route\RouteConfig
Add route HTTP method.
string | $method | The route's supported HTTP method. |
If the HTTP method is invalid.
Chainable
setActionData(array $actionData) : \Charcoal\App\Route\ActionRouteConfig
Set the action data.
array | $actionData | The route data. |
Chainable