Skip to content

Commit ef45279

Browse files
committed
Use natural sort in directory structure
1 parent d3c8a76 commit ef45279

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

bundles.rst

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -91,31 +91,31 @@ The directory structure of a bundle is meant to help to keep code consistent
9191
between all Symfony bundles. It follows a set of conventions, but is flexible
9292
to be adjusted if needed:
9393

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)
9698

9799
``config/``
98100
Houses configuration, including routing configuration (e.g. ``routing.yaml``).
99101

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-
106102
``public/``
107103
Contains web assets (images, compiled CSS and JavaScript files, etc.) and is
108104
copied or symbolically linked into the project ``public/`` directory via the
109105
``assets:install`` console command.
110106

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``).
115112

116113
``tests/``
117114
Holds all tests for the bundle.
118115

116+
``translations/``
117+
Holds translations organized by domain and locale (e.g. ``AcmeBlogBundle.en.xlf``).
118+
119119
.. caution::
120120

121121
The recommended bundle structure was changed in Symfony 5, read the

0 commit comments

Comments
 (0)