loading...

re: Domain-driven Design (DDD): File Structure VIEW POST

TOP OF THREAD FULL DISCUSSION
re: You are right, I can view more clearly the domain and the infrastructure groups, but sometimes I lose sight of the application group. Thanks for s...

Controllers are part of the infrastructure layer so, Infrastructure/Web is where all the web related stuff sits. Console is for console commands (still in Infrastructure). Routes on the other hand exist in an independent file just for routes (not a big fan of annotations), dependencies are defined in a separate file too, which aggregates the different dependency providers for each BC or module. I use PHP (no framework) but I think this approach is language agnostic.

Code of Conduct Report abuse