Advanced
Advanced
class Advanced extends \Hazaar\Application\Router\LoaderExtends: Hazaar\Application\Router\Loader
Properties
actionArgs
protected array $actionArgsType: array
Methods
evaluateRequest
Evaluates the request and sets the controller, action, and arguments based on the request path.
public evaluateRequest(Request $request): ?RouteReturns: Hazaar\Application\Route
Parameters
| Parameter | Type | Description |
|---|---|---|
$request | Hazaar\Application\Request | the request object |
getRoutes
Statically enumerates every route this loader can dispatch, by scanning the app's
public getRoutes(): arrayReturns: array
Controllers path (including nested directories) and synthesizing one route per public method — see Hazaar\Application\Router\Loader::synthesizeRoutesForController. A controller that is the default controller for its directory (matches router.controller, e.g. Index) has that trailing path segment collapsed, mirroring how Hazaar\Application\Router\Loader\Advanced::findController resolves a bare directory path to its default controller. This is a best-effort reconstruction of the request-time resolution rules, not a byte-for-byte inverse of Hazaar\Application\Router\Loader\Advanced::findController.
Not registered on the router — this loader's real Hazaar\Application\Router\Loader\Advanced::evaluateRequest never consults the router's in-memory route table, so there's nothing to gain by populating it here.
evaluateAliases
Evaluates the request and sets the controller, action, and arguments based on the request path.
private evaluateAliases(string $route, array $aliases): stringReturns: string
Parameters
| Parameter | Type | Description |
|---|---|---|
$route | string | the request path |
$aliases | array | the aliases |
findController
Finds the controller based on the given parts.
private findController(string $path, array $controllerParts): ?stringReturns: string
Parameters
| Parameter | Type | Description |
|---|---|---|
$path | string | the name of the controller |
$controllerParts | array |
Generated by Hazaar API Doc Generator on Fri, 04 Sep 2026 23:32:17 +0000