Skip to content

Internals Router Interface ICsrfTokenStore

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

router\interface\ICsrfTokenStore

Framework Internals · Subsystem overview · Developer guide

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

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

ICsrfTokenStore

Declaration and architectural role

interface ICsrfTokenStore

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
get public function get(string $name): ?string
put public function put(string $name, string $token): void

get

Source line 7

public function get(string $name): ?string;

Parameters

Parameter Type, modifiers and default Purpose
$name string $name Named key/label selected by this API; its exact scope is shown by 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.

put

Source line 8

public function put(string $name, string $token): void;

Parameters

Parameter Type, modifiers and default Purpose
$name string $name Named key/label selected by this API; its exact scope is shown by the implementation trace.
$token string $token 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.

Clone this wiki locally