From 981adcd2f8cd63586394b5b4f68785ec4c2339b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Wilczy=C5=84ski?= Date: Mon, 30 Jan 2023 21:25:13 +0100 Subject: [PATCH] =?UTF-8?q?Added=20description=20to=20improved=20bin/conso?= =?UTF-8?q?le=20debug:container=20--env-vars=20=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configuration.rst | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/configuration.rst b/configuration.rst index 5e78afd93ae..c946a6ee63b 100644 --- a/configuration.rst +++ b/configuration.rst @@ -871,19 +871,21 @@ Use the ``debug:dotenv`` command to understand how Symfony parses the different The option to pass variable names to ``debug:dotenv`` was introduced in Symfony 6.2. Additionally, and regardless of how you set environment variables, you can see all -environment variables, with their values, referenced in Symfony's container configuration: +environment variables, with their values, referenced in Symfony's container configuration, +you can also see the number of occurrences of each environment variable in the container: .. code-block:: terminal $ php bin/console debug:container --env-vars - ---------------- ----------------- --------------------------------------------- - Name Default value Real value - ---------------- ----------------- --------------------------------------------- - APP_SECRET n/a "471a62e2d601a8952deb186e44186cb3" - FOO "[1, "2.5", 3]" n/a - BAR null n/a - ---------------- ----------------- --------------------------------------------- + ------------ ----------------- ------------------------------------ ------------- + Name Default value Real value Usage count + ------------ ----------------- ------------------------------------ ------------- + APP_SECRET n/a "471a62e2d601a8952deb186e44186cb3" 2 + BAR n/a n/a 1 + BAZ n/a "value" 0 + FOO "[1, "2.5", 3]" n/a 1 + ------------ ----------------- ------------------------------------ ------------- # you can also filter the list of env vars by name: $ php bin/console debug:container --env-vars foo