We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0bdf994 commit c58e7a3Copy full SHA for c58e7a3
cookbook/configuration/external_parameters.rst
@@ -41,6 +41,15 @@ the following ``VirtualHost`` configuration:
41
The example above is for an Apache configuration, using the `SetEnv`_
42
directive. However, this will work for any web server which supports
43
the setting of environment variables.
44
+
45
+ Also, in order for your console to work (which does not use Apache),
46
+ you must export these as shell variables. On a Unix system, you can run
47
+ the following:
48
49
+ .. code-block:: bash
50
51
+ export SYMFONY__DATABASE__USER=user
52
+ export SYMFONY__DATABASE__PASSWORD=secret
53
54
Now that you have declared an environment variable, it will be present
55
in the PHP ``$_SERVER`` global variable. Symfony then automatically sets all
0 commit comments