Documentation

No matching pages.

API

Config

Facade

Lifecycle

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 readonly string|null $namespace ·
  • public readonly string $controller ·
  • public readonly string $action ·
  • public readonly array $params ·
  • public readonly array $vars ·
  • public readonly array $groups ·
  • public readonly array $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

Back to the Index