Created
March 12, 2022 12:35
-
-
Save dgafka/7f3840e07b9f6fdfd784fd704a4e551b to your computer and use it in GitHub Desktop.
scheduling-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 | |
#[CommandHandler("registerUser")] | |
public function registerUser(#[Reference] EventBus $eventBus): void | |
{ | |
// register user | |
$eventBus->publish(new UserWasRegistered(100)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment