Category : domain-driven-design

I trying to implement query.bus to my Symfony project: $data = new CreateClinicCommand( ‘Clinic one’, ‘7729695811’, ‘127521’, ‘Moscow’, ‘Moscow’, ‘Some street’, [‘34524352352345′,’34524352352345’] ); $this->commandBus->dispatch($data); $clinic = $this->queryBus->handle(new FindClinicByIdQuery(‘9284666c-e35c-4ea2-9f6a-d520383483ad’)); echo $clinic->getName()->getName(); echo $clinic->getAddress()->getFullAddress(); It works fine. But when I add new QueryHandler and Query I get an error: Message of type "AppClinicApplicationQueryClinicFindByIdFindClinicByIdQuery" was handled multiple times. ..

Read more