@@ -871,19 +871,21 @@ Use the ``debug:dotenv`` command to understand how Symfony parses the different
871871 The option to pass variable names to ``debug:dotenv `` was introduced in Symfony 6.2.
872872
873873Additionally, 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:
875876
876877.. code-block :: terminal
877878
878879 $ php bin/console debug:container --env-vars
879880
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+ ------------ ----------------- ------------------------------------ -------------
887889
888890 # you can also filter the list of env vars by name:
889891 $ php bin/console debug:container --env-vars foo
0 commit comments