@@ -997,19 +997,21 @@ Use the ``debug:dotenv`` command to understand how Symfony parses the different
997
997
The option to pass variable names to ``debug:dotenv `` was introduced in Symfony 6.2.
998
998
999
999
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:
1001
1002
1002
1003
.. code-block :: terminal
1003
1004
1004
1005
$ php bin/console debug:container --env-vars
1005
1006
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
+ ------------ ----------------- ------------------------------------ -------------
1013
1015
1014
1016
# you can also filter the list of env vars by name:
1015
1017
$ php bin/console debug:container --env-vars foo
0 commit comments