Subfolders in symfony controller folder
Is it possible to add some subfolders to the Controller folder? It's hard to find the one I want after they become fifteen (and also the mixing logic that I want to move to separate controllers) and I'm going to add even more. I can clearly see that they all belong to different logical domains - entities and a few other domains - such as reports, etc., but they all, anyway, use the entities and services of my app bundle, and I'm pretty sure that I will not separate them from different packages.
+3
source to share
1 answer
The controller folder should only have Controller. You can create subfolders inside the Controller folder, but should only contain controllers.
A good structure looks like this:
- BusinessLogicBundle (enable services)
- CoreBundle (controller, form, listeners, helpers)
- EntityBundle (Entity, Commands, Validator)
-1
source to share