dimanche 28 mars 2021

Should you use nested directories for entities when designing your symfony application?

Should you use nested directories for entities when designing a Symfony application?

For example, we have many entities, is it worth splitting them into folders using namespases?

User
User/Domain
User/Domain/Response
...

vs

User
UserDomain
UserDomainResponse
...

vs

User
Domain
Response
...

It seems to me that the second approach is more logical, but it seems to me that it is rarely used.

Which is the best to use and why? Perhaps there is a coding style guide in Symfony?

Aucun commentaire:

Enregistrer un commentaire