@@ -91,31 +91,31 @@ The directory structure of a bundle is meant to help to keep code consistent
91
91
between all Symfony bundles. It follows a set of conventions, but is flexible
92
92
to be adjusted if needed:
93
93
94
- ``src/ ``
95
- Contains all PHP classes related to the bundle logic (e.g. ``Controller/RandomController.php ``).
94
+ ``assets/ ``
95
+ Contains the web asset sources (JavaScript and TypeScript files, CSS and Sass
96
+ files, etc.), images and other assets related to the bundle that are not in
97
+ ``public/ `` (e.g. Stimulus controllers)
96
98
97
99
``config/ ``
98
100
Houses configuration, including routing configuration (e.g. ``routing.yaml ``).
99
101
100
- ``templates/ ``
101
- Holds templates organized by controller name (e.g. ``random/index.html.twig ``).
102
-
103
- ``translations/ ``
104
- Holds translations organized by domain and locale (e.g. ``AcmeBlogBundle.en.xlf ``).
105
-
106
102
``public/ ``
107
103
Contains web assets (images, compiled CSS and JavaScript files, etc.) and is
108
104
copied or symbolically linked into the project ``public/ `` directory via the
109
105
``assets:install `` console command.
110
106
111
- ``assets/ ``
112
- Contains the web asset sources (JavaScript and TypeScript files, CSS and Sass
113
- files, etc.), images and other assets related to the bundle that are not in
114
- ``public/ `` (e.g. Stimulus controllers)
107
+ ``src/ ``
108
+ Contains all PHP classes related to the bundle logic (e.g. ``Controller/RandomController.php ``).
109
+
110
+ ``templates/ ``
111
+ Holds templates organized by controller name (e.g. ``random/index.html.twig ``).
115
112
116
113
``tests/ ``
117
114
Holds all tests for the bundle.
118
115
116
+ ``translations/ ``
117
+ Holds translations organized by domain and locale (e.g. ``AcmeBlogBundle.en.xlf ``).
118
+
119
119
.. caution ::
120
120
121
121
The recommended bundle structure was changed in Symfony 5, read the
0 commit comments