Skip to content

Commit 4a2c92f

Browse files
javiereguiluzwouterj
authored andcommitted
Tweaked the table contents
1 parent cd0b889 commit 4a2c92f

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

cookbook/bundles/best_practices.rst

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -113,21 +113,22 @@ them under the ``cache/`` or ``log/`` directory of the host application. Tools
113113
can generate files in the bundle directory structure, but only if the generated
114114
files are going to be part of the repository.
115115

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):
117118

118119
=============================== ============================= ================
119-
Type Directory Location
120+
Type Directory Mandatory?
120121
=============================== ============================= ================
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
131132
=============================== ============================= ================
132133

133134
[1] See :doc:`/cookbook/doctrine/mapping_model_classes` for how to handle the

0 commit comments

Comments
 (0)