How can I structure my project if I have a facade?
The controller will call the facade to call the class in another package and the self package?
Like:
feature/
├── order/
│ ├── OrderController <== here calls Facade
│ ├── OrderService
└── facade/
│ ├── CheckoutFacade <== here calls orderService(go to facade and back to self package) and personService
└── person/
└── PersonService
Should I create a controller package separately of feature?
Aucun commentaire:
Enregistrer un commentaire