Layer: Handler · Source: lib/handler/FrontRequestHandler.php:16 (lines 16–29)
interface FrontRequestHandler
Contract for front-end request handlers.
Each handler is responsible for a single route (home, post, page, etc.) and receives parsed parameters from the dispatcher. Implementations receive a ThemeRendererInterface instance to render the appropriate theme template.
No parent, interface or trait. This is a root type.
None.
None declared.
| Visibility | Method | Summary | Line |
|---|---|---|---|
| public | handle() | Handle an incoming front-end request. | 28 |
public function handle(array $params): void
line 28
Handle an incoming front-end request.
Implementations should validate the parameters, check that the requested content exists (if applicable), and render the appropriate theme template via the ThemeRendererInterface instance.
| Parameter | Type | Default | Description |
|---|---|---|---|
$params | array | required | Parsed route parameters (e.g. ['value' ⇒ '…']). |
Returns: void — void
This page is generated from source by 'tools/gendoc'. Edits will be overwritten.