Introduction
Execute your Business Actions via Interface
Command Interface
class TicketService
{
#[CommandHandler("ticket.create")]
public function createTicket(CreateTicketCommand $command) : void
{
// handle create ticket command
}
}interface TicketApi
{
#[BusinessMethod('ticket.create')]
public function create(CreateTicketCommand $command): void;
}Aggregate Command Interface
Query Interface
Result Conversion
Payload Conversion
Last updated
Was this helpful?