Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 1d2ef41

Browse filesBrowse files
committed
minor #15734 [Dotenv] extending env var list with debug:dotenv command (chr-hertel)
This PR was merged into the 5.4 branch. Discussion ---------- [Dotenv] extending env var list with debug:dotenv command Was not sure about where to put this ... symfony/symfony#42580 Commits ------- 77d5506 extending env var list with debug:dotenv command
2 parents d61c9ee + 77d5506 commit 1d2ef41
Copy full SHA for 1d2ef41

File tree

1 file changed

+31
-2
lines changed
Filter options

1 file changed

+31
-2
lines changed

‎configuration.rst

Copy file name to clipboardExpand all lines: configuration.rst
+31-2Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -718,8 +718,37 @@ you can encrypt the value using the :doc:`secrets management system </configurat
718718
Listing 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

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.