@@ -113,21 +113,22 @@ them under the ``cache/`` or ``log/`` directory of the host application. Tools
113
113
can generate files in the bundle directory structure, but only if the generated
114
114
files are going to be part of the repository.
115
115
116
- The following classes and files have specific emplacements:
116
+ The following classes and files have specific emplacements (some are mandatory
117
+ and others are just conventions followed by most developers):
117
118
118
119
=============================== ============================= ================
119
- Type Directory Location
120
+ Type Directory Mandatory?
120
121
=============================== ============================= ================
121
- Commands ``Command/ `` Mandatory
122
- Controllers ``Controller/ `` Mandatory
123
- Service Container Extensions ``DependencyInjection/ `` Mandatory
124
- Event Listeners ``EventListener/ `` Convention
125
- Model classes [1] ``Model/ `` Convention
126
- Configuration ``Resources/config/ `` Mandatory
127
- Web Resources (CSS, JS, images) ``Resources/public/ `` Mandatory
128
- Translation files ``Resources/translations/ `` Mandatory
129
- Templates ``Resources/views/ `` Mandatory
130
- Unit and Functional Tests ``Tests/ `` Mandatory
122
+ Commands ``Command/ `` Yes
123
+ Controllers ``Controller/ `` Yes
124
+ Service Container Extensions ``DependencyInjection/ `` Yes
125
+ Event Listeners ``EventListener/ `` No
126
+ Model classes [1] ``Model/ `` No
127
+ Configuration ``Resources/config/ `` Yes
128
+ Web Resources (CSS, JS, images) ``Resources/public/ `` Yes
129
+ Translation files ``Resources/translations/ `` Yes
130
+ Templates ``Resources/views/ `` Yes
131
+ Unit and Functional Tests ``Tests/ `` No
131
132
=============================== ============================= ================
132
133
133
134
[1] See :doc: `/cookbook/doctrine/mapping_model_classes ` for how to handle the
0 commit comments