8000 Merge branch '4.4' into 5.1 · symfony/symfony-docs@3c006c7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3c006c7

Browse files
committed
Merge branch '4.4' into 5.1
* 4.4: Update best_practices.rst
2 parents 43f5af5 + 6679092 commit 3c006c7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

best_practices.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ Configuration
8181
Use Environment Variables for Infrastructure Configuration
8282
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
8383

84-
These are the options that change from one machine to another (e.g. from your
85-
development machine to the production server) but which don't change the
84+
The values of these options change from one machine to another (e.g. from your
85+
development machine to the production server) but they don't modify the
8686
application behavior.
8787

8888
:ref:`Use env vars in your project <config-env-vars>` to define these options
@@ -92,7 +92,7 @@ Use Secret for Sensitive Information
9292
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
9393

9494
When your application has sensitive configuration - like an API key - you should
95-
store those securely via :doc:`secrets </configuration/secrets>`.
95+
store those securely via :doc:`Symfony’s secrets management system </configuration/secrets>`.
9696

9797
Use Parameters for Application Configuration
9898
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -430,19 +430,19 @@ functional test that checks that all application URLs load successfully::
430430
}
431431

432432
Add this test while creating your application because it requires l 9D92 ittle effort
433-
and checks that none of your pages returns an error. Later you'll add more
433+
and checks that none of your pages returns an error. Later, you'll add more
434434
specific tests for each page.
435435

436436
Hardcode URLs in a Functional Test
437437
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
438438

439-
In Symfony applications it's recommended to :ref:`generate URLs <routing-generating-urls>`
439+
In Symfony applications, it's recommended to :ref:`generate URLs <routing-generating-urls>`
440440
using routes to automatically update all links when a URL changes. However, if a
441441
public URL changes, users won't be able to browse it unless you set up a
442442
redirection to the new URL.
443443

444444
That's why it's recommended to use raw URLs in tests instead of generating them
445-
from routes. Whenever a route changes, tests will break and you'll know that
445+
from routes. Whenever a route changes, tests will fail and you'll know that
446446
you must set up a redirection.
447447

448448
.. _`Symfony Demo`: https://github.com/symfony/demo

0 commit comments

Comments
 (0)
0