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

User actions should be in the Domain namespace instead of the Application namespace #342

Open
kanevbg opened this issue Jan 19, 2024 · 2 comments

Comments

@kanevbg
Copy link

kanevbg commented Jan 19, 2024

image
In my opinion these are better suited being in the Domain namespace, as they're implementations are domain-specific. Do you agree?

@odan
Copy link

odan commented Feb 14, 2024

An action class is a "controller", more precisely a single action controller, which only handles the HTTP request/response-specific tasks. It therefore does not belongs to the Domain namespace.

@etshy
Copy link

etshy commented Aug 7, 2024

I saw some articles putting an additionnal layer for API/Controller/Views/etc. whatever that comes from the outside. a "Presentation" layer if I remember.

If anything needs to change, the Action (Controller) should be in Presentation layer and the handler of the action in the Application layer.

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

No branches or pull requests

3 participants