Skip to content

Internals Router Interface IRouteExecutor

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

router\interface\IRouteExecutor

Framework Internals · Subsystem overview · Developer guide

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

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

Imports and dependencies

use redirect\Redirect;
use response\Response;
use router\interface\IRequest;
use router\interface\IRoute;
use view\View;

IRouteExecutor

Declaration and architectural role

interface IRouteExecutor

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
execute public function execute(IRoute $route, IRequest $request, array $params = []): View|Redirect|Response

execute

Source line 14

public function execute(IRoute $route, IRequest $request, array $params = []): View|Redirect|Response;

Parameters

Parameter Type, modifiers and default Purpose
$route IRoute $route Operation input; the exact use, validation and propagation are shown in the implementation trace.
$request IRequest $request Request snapshot consumed by matching, method and security checks.
$params array $params = [] Operation input; the exact use, validation and propagation are shown in the implementation trace.

Enforce route policies before running middleware, events and the action.

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