Created
January 16, 2022 19:04
-
-
Save dgafka/fbb4cb2dba44b5b222b3e3911a0c8e7d to your computer and use it in GitHub Desktop.
microservices-integration-in-php-09.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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