File tree Expand file tree Collapse file tree 2 files changed +7
-16
lines changed Expand file tree Collapse file tree 2 files changed +7
-16
lines changed Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ default Symfony Standard Edition follow this structure:
3636
3737 your-project/
3838 ├─ app/
39+ │ ├─ ...
3940 │ └─ config/
4041 │ ├─ config.yml
4142 │ ├─ config_dev.yml
@@ -46,11 +47,7 @@ default Symfony Standard Edition follow this structure:
4647 │ ├─ routing.yml
4748 │ ├─ routing_dev.yml
4849 │ └─ security.yml
49- ├─ src/
50- ├─ tests/
51- ├─ var/
52- ├─ vendor/
53- └─ web/
50+ ├─ ...
5451
5552 This default structure was chosen for its simplicity — one file per environment.
5653But as any other Symfony feature, you can customize it to better suit your needs.
@@ -69,6 +66,7 @@ name as the environment:
6966
7067 your-project/
7168 ├─ app/
69+ │ ├─ ...
7270 │ └─ config/
7371 │ ├─ common/
7472 │ │ ├─ config.yml
@@ -85,11 +83,7 @@ name as the environment:
8583 │ ├─ parameters.yml
8684 │ ├─ routing.yml
8785 │ └─ security.yml
88- ├─ src/
89- ├─ tests/
90- ├─ var/
91- ├─ vendor/
92- └─ web/
86+ ├─ ...
9387
9488 To make this work, change the code of the
9589:method: `Symfony\\ Component\\ HttpKernel\\ KernelInterface::registerContainerConfiguration `
@@ -167,6 +161,7 @@ and several files to define all application services:
167161
168162 your-project/
169163 ├─ app/
164+ │ ├─ ...
170165 │ └─ config/
171166 │ ├─ bundles/
172167 │ │ ├─ bundle1.yml
@@ -186,11 +181,7 @@ and several files to define all application services:
186181 │ ├─ backend.yml
187182 │ ├─ ...
188183 │ └─ security.yml
189- ├─ src/
190- ├─ tests/
191- ├─ var/
192- ├─ vendor/
193- └─ web/
184+ ├─ ...
194185
195186 Again, change the code of the ``registerContainerConfiguration() `` method to
196187make Symfony aware of the new file organization::
Original file line number Diff line number Diff line change @@ -265,7 +265,7 @@ directory with at least the following contents:
265265 /var/logs/*
266266 !var/cache/.gitkeep
267267 !var/logs/.gitkeep
268- /bin /SymfonyRequirements.php
268+ /var /SymfonyRequirements.php
269269 /build/
270270 /vendor/
271271 /bin/
You can’t perform that action at this time.
0 commit comments