Skip to content
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

DM Service: why a distinct folder "Handlers"? #11

Open
inesc-id-esw opened this issue Mar 15, 2011 · 2 comments
Open

DM Service: why a distinct folder "Handlers"? #11

inesc-id-esw opened this issue Mar 15, 2011 · 2 comments
Labels

Comments

@inesc-id-esw
Copy link

Why the services implementation, such as AddTeacher, are not in "Services" folder?

@duarten
Copy link
Member

duarten commented Mar 15, 2011

AddTeacher is a command handler, not a service. A command represents an action that can be performed on the domain, something akin to an use-case. However, a command handler may depend on application or domain services (such as the repository) to fulfill the command. Makes sense?

@fmcarvalho
Copy link
Collaborator

I agree...in part. And, I also remeber when we have discussed the existence of a services layer and now we have not one, but two more abstraction layers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants