Tempest
Tempest CQRS DDD Event Sourcing with Ecotone
Installation
Tempest Services in your Handlers
use Tempest\Mail\GenericEmail;
use Tempest\Mail\Mailer;
#[Asynchronous('notifications')]
#[EventHandler(endpointId: 'order_confirmation.notify')]
public function sendConfirmation(OrderWasPlaced $event, Mailer $mailer): void
{
$mailer->send(new GenericEmail(
subject: sprintf('Order #%d confirmed', $event->orderId),
to: $event->customerEmail,
html: '...',
));
}Materials
Live demo application
Demo implementation
Last updated
Was this helpful?