Repository navigation
Internals Router Events EDynamicRoute
Framework Internals · Subsystem overview · Developer guide
Source: awt_src/classes/router/events/EDynamicRoute.php · Snapshot 8411f4287706.
Routing separates definition, HTTP request snapshot, matching, method policy, execution and error responses. Collaborators can be replaced through constructor injection.
use event\interfaces\IEvent;
use router\interface\IRoute;final class EDynamicRoute implements IEventDeclarations 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 |
|---|---|---|
| $routes | private array $routes = []; |
Used by addRoute(), bundle(). |
| Method | Signature |
|---|---|
| getName | public function getName(): string |
| addRoute | public function addRoute(IRoute $router): void |
| bundle | public function bundle(): array |
public function getName(): stringReturn expressions (including local callbacks): "route.dynamic.add".
Implementation, validation guards and interaction order
public function getName(): string
{
return "route.dynamic.add";
}public function addRoute(IRoute $router): void| Parameter | Type, modifiers and default | Purpose |
|---|---|---|
$router |
IRoute $router |
Operation input; the exact use, validation and propagation are shown in the implementation trace. |
State writes: $this->routes[].
Implementation, validation guards and interaction order
public function addRoute(IRoute $router): void
{
$this->routes[] = $router;
}public function bundle(): arrayReturn expressions (including local callbacks): $this->routes.
Implementation, validation guards and interaction order
public function bundle(): array
{
return $this->routes;
}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