You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+9-2
Original file line number
Diff line number
Diff line change
@@ -56,12 +56,19 @@ This may be the case if you use hashed values of credentials you pass via `.env`
56
56
You can specify a class that implements `\Helhum\DotEnvConnector\DotEnvVars` interface,
57
57
if you need a different way to expose env vars.
58
58
59
-
*The default value* is "Helhum\DotEnvConnector\Adapter\SymfonyDotEnv",
59
+
*The default value* is `"Helhum\DotEnvConnector\Adapter\SymfonyDotEnv"`,
60
60
which uses symfony/dotenv default parsing of the one .env file.
61
61
62
62
This could be useful though e.g. if you prefer to use another dotenv parsing library to expose the variables defined in .env
63
63
or you want to switch to another parsing strategy of the Symfony dotenv parsing. In the latter case use
64
-
"Helhum\DotEnvConnector\Adapter\SymfonyLoadEnv" as value for this option.
64
+
`"Helhum\DotEnvConnector\Adapter\SymfonyLoadEnv"` as value for this option.
65
+
66
+
To additional support dumped .env settings, use the adapter `"\Helhum\DotEnvConnector\Adapter\SymfonyBootEnv"`.
67
+
This allows to load a PHP file instead, compiled from all .env* files in the environment.
68
+
*Important*: The command `dump-env` needed for compiling the PHP file, is not registered by default.
69
+
See the section [Configuring Environment Variables in Production](https://symfony.com/doc/current/configuration.html#configuring-environment-variables-in-production)
70
+
of the symfony documentation for details.
71
+
65
72
Have a look at the existing implementations for examples.
0 commit comments