Skip to content
docsv0.1.0

ComponentRenderedEvent

POST event: a component finished rendering, whether the renderer's own logic ran or a `component.rendering` listener short-circuited/decorated it. Dispatched as `component.rendered` — pure notification, readonly, no slot. **Short-circuit visibility invariant.** Mirrors {@see ComponentHandledEvent}: an intercepted render MUST still fire this event, with {@see $intercepted} `true`.

ComponentRenderedEvent::__construct()

public function __construct(string $componentName, Milpa\Live\ValueObjects\RenderRequest $request, Milpa\Live\ValueObjects\RenderResult $result, bool $intercepted = false):

Parameters

Parameters of __construct()
NameTypeDescription
$componentNamestringThe component contract's registered name.
$requestRenderRequestThe render request that was fulfilled.
$resultRenderResultThe final output — the renderer's own, or a `component.rendering` listener's decorated replacement.
$interceptedboolTrue if a `component.rendering` listener supplied or vetoed {@see $result} (the renderer's own logic never ran).