Skip to content

Commit 8fd1e76

Browse files
committed
minor #17833 Added description to improved bin/console debug:container --env-vars … (Michał Wilczyński)
This PR was squashed before being merged into the 6.3 branch. Discussion ---------- Added description to improved bin/console debug:container --env-vars … Commits ------- 981adcd Added description to improved bin/console debug:container --env-vars …
2 parents a42d8b9 + 981adcd commit 8fd1e76

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

configuration.rst

+10-8
Original file line numberDiff line numberDiff line change
@@ -997,19 +997,21 @@ Use the ``debug:dotenv`` command to understand how Symfony parses the different
997997
The option to pass variable names to ``debug:dotenv`` was introduced in Symfony 6.2.
998998

999999
Additionally, and regardless of how you set environment variables, you can see all
1000-
environment variables, with their values, referenced in Symfony's container configuration:
1000+
environment variables, with their values, referenced in Symfony's container configuration,
1001+
you can also see the number of occurrences of each environment variable in the container:
10011002

10021003
.. code-block:: terminal
10031004
10041005
$ php bin/console debug:container --env-vars
10051006
1006-
---------------- ----------------- ---------------------------------------------
1007-
Name Default value Real value
1008-
---------------- ----------------- ---------------------------------------------
1009-
APP_SECRET n/a "471a62e2d601a8952deb186e44186cb3"
1010-
FOO "[1, "2.5", 3]" n/a
1011-
BAR null n/a
1012-
---------------- ----------------- ---------------------------------------------
1007+
------------ ----------------- ------------------------------------ -------------
1008+
Name Default value Real value Usage count
1009+
------------ ----------------- ------------------------------------ -------------
1010+
APP_SECRET n/a "471a62e2d601a8952deb186e44186cb3" 2
1011+
BAR n/a n/a 1
1012+
BAZ n/a "value" 0
1013+
FOO "[1, "2.5", 3]" n/a 1
1014+
------------ ----------------- ------------------------------------ -------------
10131015
10141016
# you can also filter the list of env vars by name:
10151017
$ php bin/console debug:container --env-vars foo

0 commit comments

Comments
 (0)