Repository navigation
Internals 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.
interface ICsrfTokenManagerNo own constants, enum cases, traits or property declarations. Inherited members are documented on the parent reference page.
| 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 |
public function token(string $name = '_token'): string;| 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.
public function regenerate(string $name = '_token'): string;| 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.
public function validateToken(mixed $token, string $name = '_token'): bool;| 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.
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