$message .= \PHP_EOL .
$event->
getPostUpdateMessage();
} $source =
$event->
getContext()->
getSource();
$integrationId = null;
$createdByUserId = null;
if ($source instanceof AdminApiSource
) { $integrationId =
$source->
getIntegrationId();
$createdByUserId =
$source->
getUserId();
} $this->notificationService->
createNotification( [ 'id' => Uuid::
randomHex(),
'status' =>
$status,
'message' =>
$message,
'adminOnly' => true,
'requiredPrivileges' =>
[],
'createdByIntegrationId' =>
$integrationId,
'createdByUserId' =>
$createdByUserId,
],
$event->
getContext() );
}