Created
March 14, 2022 17:49
-
-
Save dgafka/c4ef506690bf06e60feb3589ca012e86 to your computer and use it in GitHub Desktop.
scheduling-in-php-06.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 | |
#[Asynchronous("orders")] | |
#[CommandHandler("askForOrderReview", endpointId: "askForOrderReviewEndpoint")] | |
public function askForOrderReview(string $orderId): void | |
{ | |
echo sprintf("We sent notification to user after 5 seconds to ask him for review of " . $orderId); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment