Questions tagged [dependency-rule]
4 questions
5
votes
3 answers
Controller in Clean Architecture
I'm trying to apply Clean Architecture from uncle Bob in Laravel application.
What i'm concerning is: As uncle Bob describe, the Controller should belongs to third circle: Interface Adapters (from inside-out). It means the Controller only depends on…

duy.ly
- 283
- 7
- 13
3
votes
2 answers
How to set up dependency rules?
I want to set up some new dependency rules for a repo which has multiple solutions and assemblies. Rule should be, such as:- in any project, all the assemblies of type .ABC. should not depend upon .XYZ.. Any violation of such rule should be caught…

S. V. Prasad
- 29
- 3
3
votes
3 answers
Generic ID type for "Clean Architecture" Go program
I am trying to find a proper type for my IDs in a Go program designed using Uncle Bob Martin's "Clean Architecture".
type UserID ...
type User struct {
ID UserID
Username string
...
}
type UserRepository interface {
FindByID(id UserID)…

Ralph
- 31,584
- 38
- 145
- 282
-1
votes
0 answers
How to get all the assembly names of a C# solution while analyzing one of the assembly?
I am creating a Code Analyzer assembly which can have dependency rules to govern other C# solution and assemblies. To create such rules, I have a class that inherits DiagnosticAnalyzer which contains the code for analysising.
I want to set a rule…

S. V. Prasad
- 29
- 3