Last active
January 16, 2022 17:09
-
-
Save dgafka/aae268e21a79f53b5d25c49c621a05fe to your computer and use it in GitHub Desktop.
microservices-integration-in-php-03.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 OrderServiceReceiver | |
{ | |
#[Distributed] | |
#[CommandHandler("placeOrder")] | |
public function placeOrder(PlaceOrderCommand $command): void | |
{ | |
// do something with order | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment