Skip to content

SlotRequestFactory

Factory to derive a child PSR-7 request for slot (sub-action) execution.

Ensures SlotStack presence and attaches standardized slot metadata attributes.

class SlotRequestFactory

SourceExecution/SlotRequestFactory.php
ConstantValueDescription
ATTR_SLOT_ACTION'quiote.slot.action'
ATTR_SLOT_MODULE'quiote.slot.module'
ATTR_SLOT_OUTPUTTYPE'quiote.slot.output_type'
ATTR_SLOT_PARAMETERS'quiote.slot.parameters'
MethodDescription
create(ServerRequestInterface $parent, string $module, string $action, array<string, mixed> $parameters = [], ?string $outputType = null): ServerRequestInterfaceCreate a child request containing slot metadata.

public static function create(ServerRequestInterface $parent, string $module, string $action, array<string, mixed> $parameters = [], ?string $outputType = null): ServerRequestInterface

Create a child request containing slot metadata.

ParameterTypeDescription
$parentServerRequestInterface
$modulestring
$actionstring
$parametersarray``<``string``, ``mixed``>
$outputType?``string

Returns ServerRequestInterface