Skip to content

Instantly share code, notes, and snippets.

@dgafka
Created January 16, 2022 19:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dgafka/fbb4cb2dba44b5b222b3e3911a0c8e7d to your computer and use it in GitHub Desktop.
Save dgafka/fbb4cb2dba44b5b222b3e3911a0c8e7d to your computer and use it in GitHub Desktop.
microservices-integration-in-php-09.php
<?php
class AuditLogService
{
#[Distributed]
#[EventHandler("user.was_banned")]
public function removeOrder(UserAccountWasBanned $event, array $metadata): void
{
$executorId = $metadata["executorId"];
// store the log
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment