private function logWebhookWithEvent(WebhookEntity
$webhook, WebhookEventMessage
$webhookEventMessage): void
{ /** @var EntityRepository $webhookEventLogRepository */
$webhookEventLogRepository =
$this->container->
get('webhook_event_log.repository'
);
$webhookEventLogRepository->
create([ [ 'id' =>
$webhookEventMessage->
getWebhookEventId(),
'appName' =>
$webhook->
getApp()?->
getName(),
'deliveryStatus' => WebhookEventLogDefinition::STATUS_QUEUED,
'webhookName' =>
$webhook->
getName(),
'eventName' =>
$webhook->
getEventName(),
'appVersion' =>
$webhook->
getApp()?->
getVersion(),
'url' =>
$webhook->
getUrl(),
'serializedWebhookMessage' =>
serialize($webhookEventMessage),
],
], Context::
createDefaultContext());
} /**
* @param array<string> $affectedRoleIds
*/
private function loadPrivileges(string
$eventName, array
$affectedRoleIds): void
{