@@ -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
999999Additionally, 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