Created
September 30, 2022 07:01
-
-
Save dgafka/c0c46340d48189ad2c13503a1ea19fd4 to your computer and use it in GitHub Desktop.
loosely-coupled-microservices-04.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 NotificationService | |
{ | |
#[Distributed] | |
#[EventHandler("order.was_placed")] | |
public function sendEmail(OrderWasPlaced $event): void | |
{ | |
// send email | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment