Ve la versión en español
CQRS con Symfony Messenger (Español)
Adrian Garay ・ Aug 22 '22
...
For further actions, you may consider blocking this person and/or reporting abuse
Hi, thanks for your post, that's interesting.
However, you didn't mention the validation of your models. Where should it be done? In the Command objects of the application layer or directly in the models of the domain layer?
Hi, sorry for the late response, I think validations of types are going to happen before dispatching the command, taking the request parameters and cast it to the expected types. Validations like the max/min length for the email is going to be placed on the VO EmailAddress.php
Hi, what about exist entity validation?
Could you elaborate more?
Hi, thanks for sharing your post.
I reproduced only your Command part, but it failed with the following message: "The command has not a valid handler: App\Vessel\Application\Register\RegisterVesselCommand"
I wonder if you could help me, please. 🙏 Thanks in advance. Regards.