Skip to content

Instantly share code, notes, and snippets.

@dgafka
Last active January 16, 2022 18:39
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/21923201ae0b8e7bdccfc6c2e801f7d4 to your computer and use it in GitHub Desktop.
Save dgafka/21923201ae0b8e7bdccfc6c2e801f7d4 to your computer and use it in GitHub Desktop.
microservices-integration-in-php-06.php
<?php
class OrderServiceReceiver
{
#[Distributed]
#[EventHandler("user.was_banned")]
public function removeOrder(UserAccountWasBanned $event): void
{
// remove order
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment