-
-
Save dgafka/3003c3b824f1ac51b423593d298e4b4a to your computer and use it in GitHub Desktop.
outbox-pattern-02.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 EventHandlerService | |
{ | |
#[Asynchronous(Configuration::DATABASE_CHANNEL)] | |
#[EventHandler(endpointId:"notifyAboutNeworder")] | |
public function notifyAboutNewOrder(OrderWasPlaced $event) : void | |
{ | |
// notify about new order | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment