Skip to content

Commit 171f085

Browse files
committed
Merge branch '2.3' into 2.5
* 2.3: [#4276] Making language correction we agreed on [Cookbook][External Parameters] Enhance description of environment variables Make a small grammatical adjustment
2 parents b78a20a + 4bada7c commit 171f085

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

components/http_foundation/session_configuration.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ which runs reasonably frequently. The ``cookie_lifetime`` would be set to a
181181
relatively high value, and the garbage collection ``gc_maxlifetime`` would be set
182182
to destroy sessions at whatever the desired idle period is.
183183

184-
The other option is to specifically checking if a session has expired after the
184+
The other option is specifically check if a session has expired after the
185185
session is started. The session can be destroyed as required. This method of
186186
processing can allow the expiry of sessions to be integrated into the user
187187
experience, for example, by displaying a message.

cookbook/configuration/external_parameters.rst

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@ Environment Variables
1414
---------------------
1515

1616
Symfony will grab any environment variable prefixed with ``SYMFONY__`` and
17-
set it as a parameter in the service container. Double underscores are replaced
18-
with a period, as a period is not a valid character in an environment variable
19-
name.
17+
set it as a parameter in the service container. Some transformations are
18+
applied to the resulting parameter name:
19+
20+
* ``SYMFONY__`` prefix is removed;
21+
* Parameter name is lowercased;
22+
* Double underscores are replaced with a period, as a period is not
23+
a valid character in an environment variable name.
2024

2125
For example, if you're using Apache, environment variables can be set using
2226
the following ``VirtualHost`` configuration:
@@ -94,6 +98,14 @@ You can now reference these parameters wherever you need them.
9498
)
9599
));
96100
101+
.. note::
102+
103+
Even in debug mode, setting or changing an environment variable
104+
requires your cache to be cleared to make the parameter available.
105+
In debug mode, this is required since only a change to a configuration
106+
file that is loaded by Symfony triggers your configuration to be
107+
re-evaluated.
108+
97109
Constants
98110
---------
99111

0 commit comments

Comments
 (0)