Conversation
cb1088a to
2fd1660
Compare
|
@alexander-schranz Maybe you also have an opinion on the directory structure I'm proposing here. I don't know what the most common way to structure a Sulu application is. |
|
I don't think our typical domain-based structure makes sense for a MakerBundle, so I would have a look at the Symfony MakerBundle how they handle it. PS: would make all maker bundle classes |
|
The file tree I showed in the comment would be the directory structure of the generated project. Because there is currently no convention for where a Sulu admin class would be located. It would generate admin classes with the maker to this location. And marking all classes as internal makes sense. |
|
Merging this because I need this for another feature. (Attribute based routing) |
What I did
interactMethod to set up the commandDoctrineHelperto select entities interactively--assume-defaultsor-deverywhere)Changing naming conventions
What this means
One of the advantages of using Sulu is that you're free to put your classes where ever you want as long as they're correctly wired up. However, this also makes it harder for a tool like the maker bundle to find stuff to update and reference. So I suggest the following structure.