I have a project that is split in several parts, because i have a lot of entity(and all the controllers and forms which come with them), but they are in relation, and my question is, how do I have to structure my project does I need to have one bundle with several subfolder or several bundles because the best practice says that a bundle as to be independent and can be deleted, but the app still works.
Thank you in advance and sorry for my low English level.
The following diagram summarizes my question.
src/
AppBundle/
Controller/
CustomerController/
CustommerController.php
...
SaleController/
...
or src/
CustomerBundle/
Controller/
SaleBundle/
Controller/
...
Best regards Toniouch.
Use bundles, make them as small as they need to be. Having one, generic, tightly coupled bundle is a bad idea because it's hard to maintain as your app grows.
The recommended bundle structure is there for a reason! :)
More info on bundles here: http://symfony.com/doc/current/cookbook/bundles/best_practices.html