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. ..
I work with a DDD symfony application with a Rest API. We have many doctrine collection per entity, and I have 2 problems. The merge of actual collections and the new one received by the API is huge and I can’t find a easy way to do that is it better to use value object ..
I try to set up security per folder under src/ in Symfony. But I want a different set of security rules per main folder “General” and “Intranet” without having to prefix the routes… So I only have to prefix “Extranet” Is that possible? I know that with a prefix in routing.yml it is very easy ..