Skip to content

Commit e5e3c37

Browse files
committed
Merge branch '5.4' into 6.4
* 5.4: Fix the parameter configuration in the file upload doc
2 parents 9c67dc8 + 7d5aebc commit e5e3c37

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

controller/upload_file.rst

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -171,16 +171,17 @@ Finally, you need to update the code of the controller that handles the form::
171171
}
172172
}
173173

174-
Now, create the ``brochures_directory`` parameter that was used in the
175-
controller to specify the directory in which the brochures should be stored:
174+
Now, bind the ``$brochuresDirectory`` controller argument to its actual value
175+
using the service configuration:
176176

177177
.. code-block:: yaml
178178
179179
# config/services.yaml
180-
181-
# ...
182-
parameters:
183-
brochures_directory: '%kernel.project_dir%/public/uploads/brochures'
180+
services:
181+
_defaults:
182+
# ...
183+
bind:
184+
string $brochuresDirectory: '%kernel.project_dir%/public/uploads/brochures'
184185
185186
There are some important things to consider in the code of the above controller:
186187

0 commit comments

Comments
 (0)