File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -150,6 +150,13 @@ Copies files or directories from the Composer package contents to the Symfony
150
150
application. It's defined as an associative array where the key is the original
151
151
file/directory and the value is the target file/directory.
152
152
153
+ .. caution ::
154
+
155
+ Copying files from the package should be avoided, except for some very
156
+ specific use cases. Copying PHP files under the project's ``src/ ``
157
+ directory is almost always a bad idea; consider adding a command in your
158
+ bundle that is able to generate such PHP files instead.
159
+
153
160
This example copies the ``bin/check.php `` script of the package into the binary
154
161
directory of the application:
155
162
@@ -202,9 +209,12 @@ files and directories:
202
209
203
210
"copy-from-recipe" : {
204
211
"config/" : " %CONFIG_DIR%/" ,
205
- "src/" : " %SRC_DIR%/"
206
212
}
207
213
214
+ Avoid storing PHP files that should land under the ``src/ `` directory; consider
215
+ adding a command in your bundle that is able to generate such PHP files
216
+ instead.
217
+
208
218
``env `` Configurator
209
219
~~~~~~~~~~~~~~~~~~~~
210
220
You can’t perform that action at this time.
0 commit comments