File tree 2 files changed +7
-16
lines changed
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:
36
36
37
37
your-project/
38
38
├─ app/
39
+ │ ├─ ...
39
40
│ └─ config/
40
41
│ ├─ config.yml
41
42
│ ├─ config_dev.yml
@@ -46,11 +47,7 @@ default Symfony Standard Edition follow this structure:
46
47
│ ├─ routing.yml
47
48
│ ├─ routing_dev.yml
48
49
│ └─ security.yml
49
- ├─ src/
50
- ├─ tests/
51
- ├─ var/
52
- ├─ vendor/
53
- └─ web/
50
+ ├─ ...
54
51
55
52
This default structure was chosen for its simplicity — one file per environment.
56
53
But as any other Symfony feature, you can customize it to better suit your needs.
@@ -69,6 +66,7 @@ name as the environment:
69
66
70
67
your-project/
71
68
├─ app/
69
+ │ ├─ ...
72
70
│ └─ config/
73
71
│ ├─ common/
74
72
│ │ ├─ config.yml
@@ -85,11 +83,7 @@ name as the environment:
85
83
│ ├─ parameters.yml
86
84
│ ├─ routing.yml
87
85
│ └─ security.yml
88
- ├─ src/
89
- ├─ tests/
90
- ├─ var/
91
- ├─ vendor/
92
- └─ web/
86
+ ├─ ...
93
87
94
88
To make this work, change the code of the
95
89
:method: `Symfony\\ Component\\ HttpKernel\\ KernelInterface::registerContainerConfiguration `
@@ -167,6 +161,7 @@ and several files to define all application services:
167
161
168
162
your-project/
169
163
├─ app/
164
+ │ ├─ ...
170
165
│ └─ config/
171
166
│ ├─ bundles/
172
167
│ │ ├─ bundle1.yml
@@ -186,11 +181,7 @@ and several files to define all application services:
186
181
│ ├─ backend.yml
187
182
│ ├─ ...
188
183
│ └─ security.yml
189
- ├─ src/
190
- ├─ tests/
191
- ├─ var/
192
- ├─ vendor/
193
- └─ web/
184
+ ├─ ...
194
185
195
186
Again, change the code of the ``registerContainerConfiguration() `` method to
196
187
make 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:
265
265
/var/logs/*
266
266
!var/cache/.gitkeep
267
267
!var/logs/.gitkeep
268
- /bin /SymfonyRequirements.php
268
+ /var /SymfonyRequirements.php
269
269
/build/
270
270
/vendor/
271
271
/bin/
You can’t perform that action at this time.
0 commit comments