This is an old revision of the document!
Table of Contents
FrontRequestHandler
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.
Inheritance
No parent, interface or trait. This is a root type.
Constants (0)
None.
Properties (0)
None declared.
Methods (1)
^ Visibility ^ Method ^ Summary ^ Line ^ | public | ''handle()'' | Handle an incoming front-end request. | 28 |
handle()
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.
