Skip to content

Commit 2bd2528

Browse files
committed
Merge branch '4.3' into 4.4
* 4.3: Add note about .env.local being ignored in test environment
2 parents 03a612b + 93c8f33 commit 2bd2528

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

configuration.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -617,10 +617,10 @@ following list shows the files loaded in all environments. The ``.env`` file is
617617
the only mandatory file and each file content overrides the previous one:
618618

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

798798
// src/Service/MessageGenerator.php
799799
namespace App\Service;
800-
800+
801801
// ...
802802

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

0 commit comments

Comments
 (0)