Layer: Handler · Source: lib/handler/BlogHandler.php:16 (lines 16–42)
class BlogHandler implements FrontRequestHandler
Renders the blog listing page.
Displays paginated blog posts. Rendering is delegated entirely to the theme renderer; no parameter validation is required.
| Relation | Type | Meaning |
|---|---|---|
| implements | ''FrontRequestHandler'' | contract |
None.
| Visibility | Type | Name | Default | Line |
|---|---|---|---|---|
private | ''ThemeRendererInterface'' | $renderer | 23 |
| Visibility | Method | Summary | Line |
|---|---|---|---|
| public | __construct() | Construct a new BlogHandler. | 30 |
| public | handle() | Handle an incoming front-end request. | 38 |
public function __construct(ThemeRendererInterface $renderer)
lines 30–33 (4)
Construct a new BlogHandler.
| Parameter | Type | Default | Description |
|---|---|---|---|
$renderer | ''ThemeRendererInterface'' | required | The theme renderer instance. |
public function handle(array $params): void
lines 38–41 (4)
Documentation inherited from ''Scriptlog\Handler\FrontRequestHandler''.
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
| Alias | Fully-qualified name |
|---|---|
ThemeRendererInterface | ''Scriptlog\Core\ThemeRendererInterface'' |
This page is generated from source by 'tools/gendoc'. Edits will be overwritten.