Skip to content

Commit c540c45

Browse files
committed
Merge branch '4.3' into 4.4
* 4.3: Debug container environment variables
2 parents 2232568 + 9a873fb commit c540c45

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

configuration.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,6 +445,32 @@ In order to define the actual values of env vars, Symfony proposes different
445445
solutions depending if the application is running in production or in your local
446446
development machine.
447447

448+
Independent from the way you set environmnet variables, you may need to run the
449+
``debug:container`` command with the ``--env-vars`` option to verify that they
450+
are defined and have the expected values:
451+
452+
.. code-block:: terminal
453+
454+
$ php bin/console debug:container --env-vars
455+
456+
---------------- ----------------- ---------------------------------------------
457+
Name Default value Real value
458+
---------------- ----------------- ---------------------------------------------
459+
APP_SECRET n/a "471a62e2d601a8952deb186e44186cb3"
460+
FOO "[1, "2.5", 3]" n/a
461+
BAR null n/a
462+
---------------- ----------------- ---------------------------------------------
463+
464+
# you can also filter the list of env vars by name:
465+
$ php bin/console debug:container --env-vars foo
466+
467+
# run this command to show all the details for a specific env var:
468+
$ php bin/console debug:container --env-var=FOO
469+
470+
.. versionadded:: 4.3
471+
472+
The option to debug environment variables was introduced in Symfony 4.3.
473+
448474
.. _configuration-env-var-in-dev:
449475
.. _config-dot-env:
450476

0 commit comments

Comments
 (0)