@@ -871,19 +871,21 @@ Use the ``debug:dotenv`` command to understand how Symfony parses the different
871
871
The option to pass variable names to ``debug:dotenv `` was introduced in Symfony 6.2.
872
872
873
873
Additionally, and regardless of how you set environment variables, you can see all
874
- environment variables, with their values, referenced in Symfony's container configuration:
874
+ environment variables, with their values, referenced in Symfony's container configuration,
875
+ you can also see the number of occurrences of each environment variable in the container:
875
876
876
877
.. code-block :: terminal
877
878
878
879
$ php bin/console debug:container --env-vars
879
880
880
- ---------------- ----------------- ---------------------------------------------
881
- Name Default value Real value
882
- ---------------- ----------------- ---------------------------------------------
883
- APP_SECRET n/a "471a62e2d601a8952deb186e44186cb3"
884
- FOO "[1, "2.5", 3]" n/a
885
- BAR null n/a
886
- ---------------- ----------------- ---------------------------------------------
881
+ ------------ ----------------- ------------------------------------ -------------
882
+ Name Default value Real value Usage count
883
+ ------------ ----------------- ------------------------------------ -------------
884
+ APP_SECRET n/a "471a62e2d601a8952deb186e44186cb3" 2
885
+ BAR n/a n/a 1
886
+ BAZ n/a "value" 0
887
+ FOO "[1, "2.5", 3]" n/a 1
888
+ ------------ ----------------- ------------------------------------ -------------
887
889
888
890
# you can also filter the list of env vars by name:
889
891
$ php bin/console debug:container --env-vars foo
0 commit comments