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

Move logic to the domain #53

Open
phaseinducer opened this issue Dec 5, 2019 · 0 comments
Open

Move logic to the domain #53

phaseinducer opened this issue Dec 5, 2019 · 0 comments

Comments

@phaseinducer
Copy link
Contributor

Currently, most of the application logic is located in service-like classes (CouplingDetector and RuleChecker) while the domain is dumb.
It would make sense to let the domain be responsible for domain logic and use it directly from the commands without services in the middle.

It would be a good occasion to use more value objects instead of scalars too.

Since some events are dispatched by that logic through Symfony's EventDispatcher we may want to use a message bus instead (something like https://symfony.com/doc/current/components/messenger.html)

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

1 participant