Class: ResolvedRoute
Full name: Azera\Core\ResolvedRoute
Resolved route metadata shared across matching requests.
$params is not cached because it may contain closures or request-scoped
services; the dispatcher rebuilds it for each request. Read URL parameters
from $vars; $params is empty on cached routes.
Public Properties
public readonlystring|null$namespace·public readonlystring$controller·public readonlystring$action·public readonlyarray$params·public readonlyarray$vars·public readonlyarray$groups·public readonlyarray$override·
Public methods
__construct() ·
public function __construct(string|null $namespace, string $controller, string $action, array $params, array $vars, array $groups, array $override): mixed
Create a new ResolvedRoute instance with the given parameters.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
$namespace |
string|null | - | Effective namespace for the controller, after applying route group namespaces. Null if no namespace is used. |
$controller |
string | - | Resolved controller class name. |
$action |
string | - | Resolved action method name. |
$params |
array | - | Resolved action method parameters. Empty for a cached route; see the class docblock. |
$vars |
array | - | Associative array of route variables extracted from the URL (e.g. ['id' => '123']). |
$groups |
array | - | List of middleware groups to apply for this route. |
$override |
array | - | Associative array of route overrides (e.g. ['controller' => 'OtherController', 'action' => 'otherAction']). |
Return value
- Type:
mixed