symfony4 - 用什么代替 Bundle?

symfony4 - What to use instead of Bundles?

symfony4 documentation states 您不应再在主代码中使用 Bundle:

In Symfony versions prior to 4.0, it was recommended to organize your own application code using bundles. This is no longer recommended and bundles should only be used to share code and features between multiple applications.

我有什么想法可以改为组织我的代码吗?

我考虑拥有 200 个实体。当他们都住在 Entity 目录中的同一层时......那真是太他妈的混乱了!

也许namespacing/subfoldering?

提前致谢!

PS:在 django 中,我认为 app

是的,我认为按域组织您的实体是一个很好的解决方案。喜欢 Entity\ShopEntity\Forum。这也适用于控制器、视图等