Skip to content

Commit a0d07bf

Browse files
committed
minor #16944 Fix ordered lists in secrets management and Form component documentation (alexandre-daubois)
This PR was merged into the 4.4 branch. Discussion ---------- Fix ordered lists in secrets management and Form component documentation Commits ------- 6570ade Fix ordered lists in secrets management and Form component documentation
2 parents 73fa75b + 6570ade commit a0d07bf

File tree

2 files changed

+23
-22
lines changed

2 files changed

+23
-22
lines changed

components/form.rst

+6-5
Original file line numberDiff line numberDiff line change
@@ -648,14 +648,15 @@ method:
648648
649649
This defines a common form "workflow", which contains 3 different possibilities:
650650

651-
1) On the initial GET request (i.e. when the user "surfs" to your page),
651+
#. On the initial GET request (i.e. when the user "surfs" to your page),
652652
build your form and render it;
653653

654-
If the request is a POST, process the submitted data (via :method:`Symfony\\Component\\Form\\Form::handleRequest`).
655-
Then:
654+
If the request is a POST, process the submitted data (via :method:`Symfony\\Component\\Form\\Form::handleRequest`).
656655

657-
2) if the form is invalid, re-render the form (which will now contain errors);
658-
3) if the form is valid, perform some action and redirect.
656+
Then:
657+
658+
#. if the form is invalid, re-render the form (which will now contain errors);
659+
#. if the form is valid, perform some action and redirect.
659660

660661
Luckily, you don't need to decide whether or not a form has been submitted.
661662
Just pass the current request to the :method:`Symfony\\Component\\Form\\Form::handleRequest`

configuration/secrets.rst

+17-17
Original file line numberDiff line numberDiff line change
@@ -240,32 +240,32 @@ Deploy Secrets to Production
240240
Due to the fact that decryption keys should never be committed, you will need to
241241
manually store this file somewhere and deploy it. There are 2 ways to do that:
242242

243-
1) Uploading the file:
243+
#. Uploading the file
244244

245-
The first option is to copy the **production decryption key** -
246-
``config/secrets/prod/prod.decrypt.private.php`` to your server.
245+
The first option is to copy the **production decryption key** -
246+
``config/secrets/prod/prod.decrypt.private.php`` to your server.
247247

248-
2) Using an Environment Variable
248+
#. Using an Environment Variable
249249

250-
The second way is to set the ``SYMFONY_DECRYPTION_SECRET`` environment variable
251-
to the base64 encoded value of the **production decryption key**. A fancy way to
252-
fetch the value of the key is:
250+
The second way is to set the ``SYMFONY_DECRYPTION_SECRET`` environment variable
251+
to the base64 encoded value of the **production decryption key**. A fancy way to
252+
fetch the value of the key is:
253253

254-
.. code-block:: terminal
254+
.. code-block:: terminal
255255
256-
# this command only gets the value of the key; you must also set an env var
257-
# in your system with this value (e.g. `export SYMFONY_DECRYPTION_SECRET=...`)
258-
$ php -r 'echo base64_encode(require "config/secrets/prod/prod.decrypt.private.php");'
256+
# this command only gets the value of the key; you must also set an env var
257+
# in your system with this value (e.g. `export SYMFONY_DECRYPTION_SECRET=...`)
258+
$ php -r 'echo base64_encode(require "config/secrets/prod/prod.decrypt.private.php");'
259259
260-
To improve performance (i.e. avoid decrypting secrets at runtime), you can decrypt
261-
your secrets during deployment to the "local" vault:
260+
To improve performance (i.e. avoid decrypting secrets at runtime), you can decrypt
261+
your secrets during deployment to the "local" vault:
262262

263-
.. code-block:: terminal
263+
.. code-block:: terminal
264264
265-
$ php bin/console secrets:decrypt-to-local --force --env=prod
265+
$ php bin/console secrets:decrypt-to-local --force --env=prod
266266
267-
This will write all the decrypted secrets into the ``.env.prod.local`` file.
268-
After doing this, the decryption key does *not* need to remain on the server(s).
267+
This will write all the decrypted secrets into the ``.env.prod.local`` file.
268+
After doing this, the decryption key does *not* need to remain on the server(s).
269269

270270
Rotating Secrets
271271
----------------

0 commit comments

Comments
 (0)