Last active
March 14, 2022 17:52
-
-
Save dgafka/7ed2dcf17fc8d09885b9bc2b4f270f93 to your computer and use it in GitHub Desktop.
scheduling-in-php-05.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 | |
if ($isQuickShipping) { | |
$commandBus->sendWithRouting("askForOrderReview", "Samsung TV", metadata: ["deliveryDelay" => 7 * 24 * 60 * 60 * 1000]); | |
}else { | |
$commandBus->sendWithRouting("askForOrderReview", "Samsung TV", metadata: ["deliveryDelay" => 3 * 24 * 60 * 60 * 1000]); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment