Skip to content

Internals Router Interface ICsrfTokenManager

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

router\interface\ICsrfTokenManager

Framework Internals · Subsystem overview · Developer guide

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

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

ICsrfTokenManager

Declaration and architectural role

interface ICsrfTokenManager

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
token public function token(string $name = '_token'): string
regenerate public function regenerate(string $name = '_token'): string
validateToken public function validateToken(mixed $token, string $name = '_token'): bool

token

Source line 7

public function token(string $name = '_token'): string;

Parameters

Parameter Type, modifiers and default Purpose
$name string $name = '_token' 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.

regenerate

Source line 8

public function regenerate(string $name = '_token'): string;

Parameters

Parameter Type, modifiers and default Purpose
$name string $name = '_token' 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.

validateToken

Source line 9

public function validateToken(mixed $token, string $name = '_token'): bool;

Parameters

Parameter Type, modifiers and default Purpose
$token mixed $token Operation input; the exact use, validation and propagation are shown in the implementation trace.
$name string $name = '_token' 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.

Clone this wiki locally