@@ -977,19 +977,21 @@ Use the ``debug:dotenv`` command to understand how Symfony parses the different
977
977
$ php bin/console debug:dotenv foo
978
978
979
979
Additionally, and regardless of how you set environment variables, you can see all
980
- environment variables, with their values, referenced in Symfony's container configuration:
980
+ environment variables, with their values, referenced in Symfony's container configuration,
981
+ you can also see the number of occurrences of each environment variable in the container:
981
982
982
983
.. code-block :: terminal
983
984
984
985
$ php bin/console debug:container --env-vars
985
986
986
- ---------------- ----------------- ---------------------------------------------
987
- Name Default value Real value
988
- ---------------- ----------------- ---------------------------------------------
989
- APP_SECRET n/a "471a62e2d601a8952deb186e44186cb3"
990
- FOO "[1, "2.5", 3]" n/a
991
- BAR null n/a
992
- ---------------- ----------------- ---------------------------------------------
987
+ ------------ ----------------- ------------------------------------ -------------
988
+ Name Default value Real value Usage count
989
+ ------------ ----------------- ------------------------------------ -------------
990
+ APP_SECRET n/a "471a62e2d601a8952deb186e44186cb3" 2
991
+ BAR n/a n/a 1
992
+ BAZ n/a "value" 0
993
+ FOO "[1, "2.5", 3]" n/a 1
994
+ ------------ ----------------- ------------------------------------ -------------
993
995
994
996
# you can also filter the list of env vars by name:
995
997
$ php bin/console debug:container --env-vars foo
0 commit comments