event
reactphp/promise
The
event
function dispatches the given
event
to its listeners:
<?php event
(new
UserRegistered
(
$user
));