HttpMethodMapper
Central mapping from HTTP verbs to Quiote action method tokens.
Canonical values are lowercase: read, write, update, remove. This is the single source of truth — ActionResolver derives its execute
The default mapping can be extended or overridden via the routing.http_method_map setting. A bare core. prefix, so setting routing.http_method_map needs a prefix attribute on the wrapping execute<Token>() method name on the action (ucfirst-ed), so a custom token like ‘lock’ needs a matching executeLock() method on any action that should handle it.
Synopsis
Section titled “Synopsis”final class HttpMethodMapper
| Source | Execution/HttpMethodMapper.php |
Methods
Section titled “Methods”| Method | Description |
|---|---|
toActionMethod(string $verb): string | Maps an HTTP verb to the action method token that handles it. |
toActionMethod()
Section titled “toActionMethod()”public static function toActionMethod(string $verb): string
Maps an HTTP verb to the action method token that handles it.
The verb is matched case-insensitively against the default map merged with any routing.http_method_map overrides. An unknown verb yields read, so an action never fails to dispatch merely because a verb is unmapped. The token is ucfirst-ed by the resolver into the execute<Token>() method name.
| Parameter | Type | Description |
|---|---|---|
$verb | string |
Returns string