if ($message->
getLanguageId() &&
$message->
getUserLocale()) { $headers =
array_merge($headers,
[AuthMiddleware::SHOPWARE_CONTEXT_LANGUAGE =>
$message->
getLanguageId(), AuthMiddleware::SHOPWARE_USER_LANGUAGE =>
$message->
getUserLocale()]);
} $requestContent =
[ 'headers' =>
$headers,
'body' =>
$jsonPayload,
'connect_timeout' => self::CONNECT_TIMEOUT,
'timeout' => self::TIMEOUT,
];
if ($message->
getSecret()) { $requestContent[AuthMiddleware::APP_REQUEST_TYPE
] =
[ AuthMiddleware::APP_SECRET =>
$message->
getSecret(),
];
} $context = Context::
createDefaultContext();
$this->webhookEventLogRepository->
update([ [ 'id' =>
$message->
getWebhookEventId(),
'deliveryStatus' => WebhookEventLogDefinition::STATUS_RUNNING,