-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Project suggestion for example #7
Comments
Sounds great @yvoyer ! I like the use cases because they will also show the responsibilities of Aggregate Roots on shared Objects. If we don't want to make it a Symfony App yet I would suggest to always keep a clean Regarding Symfony I think I will be able to provide:
I'm not sure yet where to put the Commands, Queries and Handlers. Currently they live in my Application folder. Because they are not Services directly related to the Domain Model. Have you read the DDD in PHP book yet? Because it suggests an interesting structure for the Domain. E.g. using |
Yes and it's definitely a good resource on the subject. I'll do the domain object pr, and we should be able to develop more on the structure before merging it in master. About the symfony app, I would put it in the infrastructure context. The bus and command could also be in infrastructure and do the mapping between the app and domain. |
Are you sure about the Infrastructure? In DDD in PHP chapter 11.1 it says:
There is also an example of an It continues in chapter 11.3 Anatomy of an Application Service. @willdurand also commented on this:
But it was an alternative to the Command Bus - to the examples by @mathiasverraes: I agree with @beberlei:
I think he relates to the A the bottom line I don't think a Symfony Bundle fits into Infrastructure:
UserInterface / Presentation:
Application:
Domain(Model):
We need more feedback on this! ;) |
Here is what I thought could represent a good use case to start an example of ddd with all types of relations (one to many, many to many), while being not too complex.
I will make a draft with tests to start a domain model (without symfony, doctrine or command bus). From there, we'll be able to start doing infrastructure, and application context.
Domain requirements:
Mr. Smith is the proud owner of the restaurant Smith's Pizzeria. He wish to have a site to manage it's company and promote it's products on the Web. Here are the requirement he wishes you to implement.
@webdevilopers Any other cases you would need that could represent the domain?
The text was updated successfully, but these errors were encountered: