private readonly StringTemplateRenderer
$templateRenderer ) { } /**
* @return array<string, array<string, string>>
*/
public function getWebhookPayloadAndHeaders(StorableFlow
$flow, string
$appFlowActionId): array
{ $context =
$flow->
getContext();
$appFlowActionData =
$this->
getAppFlowActionData($appFlowActionId);
if (empty($appFlowActionData)) { return [];
} $additionData =
$this->businessEventEncoder->
encodeData($flow->
data(),
$flow->
stored());
$data =
[...
$flow->
getConfig(), ...
$additionData];
$configData =
$this->
resolveParamsData($flow->
getConfig(),
$data,
$context,
$appFlowActionId);
/** @var array<string, mixed> $data */
$data =
[...
$configData, ...
$additionData];