File tree Expand file tree Collapse file tree 1 file changed +31
-2
lines changed Expand file tree Collapse file tree 1 file changed +31
-2
lines changed Original file line number Diff line number Diff line change @@ -718,8 +718,37 @@ you can encrypt the value using the :doc:`secrets management system </configurat
718718Listing Environment Variables
719719~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
720720
721- Regardless of how you set environment variables, you can see a full list with
722- their values by running:
721+ To understand how environment variables are set by the Dotenv component parsing various
722+ files, you can run the following command:
723+
724+ .. code-block :: terminal
725+
726+ $ php bin/console debug:dotenv
727+
728+ Dotenv Variables & Files
729+ ========================
730+
731+ Scanned Files (in descending priority)
732+ --------------------------------------
733+
734+ * ⨯ .env.local.php
735+ * ⨯ .env.dev.local
736+ * ✓ .env.dev
737+ * ⨯ .env.local
738+ * ✓ .env
739+
740+ Variables
741+ ---------
742+
743+ ---------- ------- ---------- ------
744+ Variable Value .env.dev .env
745+ ---------- ------- ---------- ------
746+ FOO BAR n/a BAR
747+ ALICE BOB BOB bob
748+ ---------- ------- ---------- ------
749+
750+ Additionally, and regardless of how you set environment variables, you can see all
751+ environment variables, with their values, referenced in Symfony's container configuration:
723752
724753.. code-block :: terminal
725754
You can’t perform that action at this time.
0 commit comments