Query Handling
Query CQRS PHP
Handling Queries
class TicketService
{
#[QueryHandler]
public function getTicket(GetTicketById $query) : array
{
//return ticket
}
}class readonly GetTicketById
{
public function __construct(
public string $ticketId
) {}
}Sending with Routing
Converting result from Query Handler
C
Last updated
Was this helpful?