Skip to content

Commit 43bfd7c

Browse files
authored
Update bundle page to reflect best practices #15881
1 parent 480669b commit 43bfd7c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

bundles.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,26 +87,26 @@ The directory structure of a bundle is meant to help to keep code consistent
8787
between all Symfony bundles. It follows a set of conventions, but is flexible
8888
to be adjusted if needed:
8989

90-
``Controller/``
90+
``src/Controller/``
9191
Contains the controllers of the bundle (e.g. ``RandomController.php``).
9292

93-
``DependencyInjection/``
93+
``src/DependencyInjection/``
9494
Holds certain Dependency Injection Extension classes, which may import service
9595
configuration, register compiler passes or more (this directory is not
9696
necessary).
9797

98-
``Resources/config/``
98+
``config/``
9999
Houses configuration, including routing configuration (e.g. ``routing.yaml``).
100100

101-
``Resources/views/``
101+
``templates/``
102102
Holds templates organized by controller name (e.g. ``Random/index.html.twig``).
103103

104-
``Resources/public/``
104+
``public/``
105105
Contains web assets (images, stylesheets, etc) and is copied or symbolically
106106
linked into the project ``public/`` directory via the ``assets:install`` console
107107
command.
108108

109-
``Tests/``
109+
``tests/``
110110
Holds all tests for the bundle.
111111

112112
A bundle can be as small or large as the feature it implements. It contains

0 commit comments

Comments
 (0)