Skip to content

Internals Router Interface IRouteFactory

Stefan Crkvenjakov edited this page Oct 7, 2026 · 1 revision

router\interface\IRouteFactory

Framework Internals · Subsystem overview · Developer guide

Source: awt_src/classes/router/interface/IRouteFactory.php · Snapshot 8411f4287706.

Routing separates definition, HTTP request snapshot, matching, method policy, execution and error responses. Collaborators can be replaced through constructor injection.

IRouteFactory

Declaration and architectural role

interface IRouteFactory

Constants, enum cases, traits and properties

No own constants, enum cases, traits or property declarations. Inherited members are documented on the parent reference page.

Method index

Method Signature
make public function make(string $path, string $action, \object\ObjectFactory|\controller\Controller $controller, bool $service = false): IRoute

make

Source line 7

public function make(string $path, string $action, \object\ObjectFactory|\controller\Controller $controller, bool $service = false): IRoute;

Parameters

Parameter Type, modifiers and default Purpose
$path string $path Filesystem or route path as defined by the owning component; no universal path normalization is implied.
$action string $action Operation input; the exact use, validation and propagation are shown in the implementation trace.
$controller \object\ObjectFactory|\controller\Controller $controller Controller instance or lazy ObjectFactory depending on the union type.
$service bool $service = false Operation input; the exact use, validation and propagation are shown in the implementation trace.

Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.

Related types

Clone this wiki locally