Repository navigation
Internals Router Matching RouteResolution
Framework Internals · Subsystem overview · Developer guide
Source: awt_src/classes/router/matching/RouteResolution.php · Snapshot 8411f4287706.
Routing separates definition, HTTP request snapshot, matching, method policy, execution and error responses. Collaborators can be replaced through constructor injection.
use router\interface\IRoute;final class RouteResolutionDeclarations below preserve visibility, type, default and modifiers exactly. A typed property without an initializer remains uninitialized until its constructor or another method assigns it. Mutable fields belong to this instance unless marked static; readonly fields can be initialized once. Constructor-promoted properties are also listed below.
| Member | Declaration | Purpose or source contract |
|---|---|---|
| Constructor-promoted | public readonly ?IRoute $route = null |
Initialized from the constructor argument; default expression is evaluated when the argument is omitted. |
| Constructor-promoted | public readonly array $params = [] |
Initialized from the constructor argument; default expression is evaluated when the argument is omitted. |
| Constructor-promoted | public readonly array $allowed = [] |
Initialized from the constructor argument; default expression is evaluated when the argument is omitted. |
| Method | Signature |
|---|---|
| __construct | public function __construct( public readonly ?IRoute $route = null, public readonly array $params = [], public readonly array $allowed = [], ) |
public function __construct(
public readonly ?IRoute $route = null,
public readonly array $params = [],
public readonly array $allowed = [],
);| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$route |
public readonly ?IRoute $route = null |
Operation input; the exact use, validation and propagation are shown in the implementation trace. |
$params |
public readonly array $params = [] |
Operation input; the exact use, validation and propagation are shown in the implementation trace. |
$allowed |
public readonly array $allowed = [] |
Operation input; the exact use, validation and propagation are shown in the implementation trace. |
Concrete no-op/default hook: this method performs no work. Override it where the lifecycle or extension contract calls for behavior.
AWT Framework Wiki · Home · Installation Guide · Developer Guide · Framework Internals
Philosophy · Architecture · Known discrepancies · Verification
Installation Guide
Developer Guide
- Learning sequence
- First package
- Package structure
- Lifecycle
- Runtimes
- Events and objects
- Routing and controllers
- Views and resources
- Database and models
- Storage and caching
- Configuration and CLI
- Responses and errors
- Extension points
Framework Internals
- Architecture
- Bootstrap
- Packages
- Runtime
- Events and context
- Objects
- HTTP routing and controllers
- Rendering
- Blade integration
- Database
- Models
- Storage and caching
- Settings
- CLI
- Identity and sessions
- Responses
- Errors
- Complete source inventory
Documentation notes