Created
January 16, 2022 19:07
-
-
Save dgafka/fc21879e348c861b35ce1c724b300d4c to your computer and use it in GitHub Desktop.
microservices-integration-in-php-10.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, #[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