-
Notifications
You must be signed in to change notification settings - Fork 0
docs: clarify dependency flow and execution rules in README #15
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
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -206,8 +206,14 @@ Here is the directory overview: | |||||||||||||||||
|
|
||||||||||||||||||
| ### Dependency Flow | ||||||||||||||||||
|
|
||||||||||||||||||
| The dependency flow proceeds inward: `infrastructure` depends on `model`, which depends on `application`, which depends on `domain`. | ||||||||||||||||||
| Each outer layer depends only on the inner layers (e.g., infrastructure → model → application → domain), ensuring clean separation and maintainability. | ||||||||||||||||||
| Source-code dependencies **only point inward** (outer → inner). Inner layers know nothing about outer ones—this is the core *“dependency rule”* of DDD ([DDD Reference, PDF](https://www.domainlanguage.com/wp-content/uploads/2016/05/DDD_Reference_2015-03.pdf)). ([domainlanguage.com][1]) | ||||||||||||||||||
|
|
||||||||||||||||||
| - The `domain` layer is independent. | ||||||||||||||||||
| - The `application` layer depends on `domain` and exposes use cases. | ||||||||||||||||||
|
Comment on lines
+209
to
+212
|
||||||||||||||||||
| Source-code dependencies **only point inward** (outer → inner). Inner layers know nothing about outer ones—this is the core *“dependency rule”* of DDD ([DDD Reference, PDF](https://www.domainlanguage.com/wp-content/uploads/2016/05/DDD_Reference_2015-03.pdf)). | |
| - The `domain` layer is independent. | |
| - The `application` layer depends on `domain` and exposes use cases. | |
| Source-code dependencies generally point inward (outer → inner), following the *“dependency rule”* of DDD ([DDD Reference, PDF](https://www.domainlanguage.com/wp-content/uploads/2016/05/DDD_Reference_2015-03.pdf)). However, in this codebase, the domain layer may import from application and infrastructure layers where necessary for practical reasons. | |
| - The `domain` layer is not strictly independent; it may depend on `application` and `infrastructure` in some cases. | |
| - The `application` layer depends on `domain` and may also interact with `infrastructure`. |
Uh oh!
There was an error while loading. Please reload this page.