Skip to content

Instantly share code, notes, and snippets.

@dgafka
Created January 16, 2022 19:07
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/fc21879e348c861b35ce1c724b300d4c to your computer and use it in GitHub Desktop.
Save dgafka/fc21879e348c861b35ce1c724b300d4c to your computer and use it in GitHub Desktop.
microservices-integration-in-php-10.php
<?php
class AuditLogService
{
#[Distributed]
#[EventHandler("user.was_banned")]
public function removeOrder(UserAccountWasBanned $event, #[Header("executorId")] string $executorId): void
{
// store the log
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment