Skip to content

Commit 03da5d8

Browse files
committed
Merge branch '4.4' into 5.0
* 4.4: Add note about .env.local being ignored in test environment
2 parents c3f0c18 + 2bd2528 commit 03da5d8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Diff for: configuration.rst

+5-5
Original file line numberDiff line numberDiff line change
@@ -613,10 +613,10 @@ following list shows the files loaded in all environments. The ``.env`` file is
613613
the only mandatory file and each file content overrides the previous one:
614614

615615
* ``.env``: defines the default values of the env vars needed by the application;
616-
* ``.env.local``: defines machine-specific overrides for env vars on all
617-
environments. This file is not committed to the repository, so these overrides
618-
only apply to the machine which contains the file (your local computer,
619-
production server, etc.);
616+
* ``.env.local``: overrides the default values of env vars for all environments
617+
but only in the machine which contains the file (e.g. your development computer).
618+
This file should not be committed to the repository and it's ignored in the
619+
``test`` environment (because tests should produce the same results for everyone);
620620
* ``.env.<environment>`` (e.g. ``.env.test``): overrides env vars only for some
621621
environment but for all machines;
622622
* ``.env.<environment>.local`` (e.g. ``.env.test.local``): defines machine-specific
@@ -793,7 +793,7 @@ parameters at once by type-hinting any of its constructor arguments with the
793793

794794
// src/Service/MessageGenerator.php
795795
namespace App\Service;
796-
796+
797797
// ...
798798

799799
use Symfony\Component\DependencyInjection\ParameterBag\ContainerBagInterface;

0 commit comments

Comments
 (0)