开发者

Where to place entities that are global to an app?

开发者 https://www.devze.com 2023-03-25 20:24 出处:网络
I\'m working on a large Symfony2 app that has the following bundles (all under the same vendor name): Login, Register, Blog, Forum. The official docs say that forum related entities belong in the Foru

I'm working on a large Symfony2 app that has the following bundles (all under the same vendor name): Login, Register, Blog, Forum. The official docs say that forum related entities belong in the Forum bundle, and Blog related entities belong in the Blog bundle. But what about my User and Account entities? Both are created during the registration process, and User is used during the login process. I consider those entities to be global to the app b/c their use isn't limited to one feature (again, per Symfony docs, one 'feature' per bundle.) I'm wondering what the best practice for this wo开发者_如何学JAVAuld be.


You can create UsersBundle and in future store other code, related to users in this bundle.

0

精彩评论

暂无评论...
验证码 换一张
取 消