I'm not satisfied by the Symfony Dotenv default behaviour, because I would like to have i.e. a .env.override
which would override existing environment values.
So I would like to add the following code in config/bootstrap.php
$envLocal = dirname(__DIR__).'/.env.override';
if (file_exists($envLocal)) {
(new Dotenv(false))->overload($envLocal);
}
Is it a problem to edit this file (config/bootstrap.php
)? Can it be erased by future Symfony updates?