- Add
SYMFONY_DOTENV_PATH
variable with the path to the.env
file loaded byDotenv::loadEnv()
orDotenv::bootEnv()
- Add a new
filter
argument todebug:dotenv
command to filter variable names
- Add
dotenv:dump
command to compile the contents of the .env files into a PHP-optimized file called.env.local.php
- Add
debug:dotenv
command to list all dotenv files with variables and values - Add
$overrideExistingVars
onDotenv::bootEnv()
andDotenv::loadEnv()
- added
Dotenv::bootEnv()
to check for.env.local.php
before callingDotenv::loadEnv()
- added
Dotenv::setProdEnvs()
andDotenv::usePutenv()
- made Dotenv's constructor accept
$envKey
and$debugKey
arguments, to define the name of the env vars that configure the env name and debug settings - deprecated passing
$usePutenv
argument to Dotenv's constructor
- using
putenv()
is disabled by default
- deprecated use of
putenv()
by default. This feature will be opted-in with a constructor argument toDotenv
- added
Dotenv::overload()
and$overrideExistingVars
as optional parameter ofDotenv::populate()
- added
Dotenv::loadEnv()
to load a .env file and its corresponding .env.local, .env.$env and .env.$env.local files if they exist
- [BC BREAK] Since v3.3.7, the latest Dotenv files override the previous ones. Real env vars are not affected and are not overridden.
- added the component