-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Dotenv] add json output to DebugCommand.php #45822
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
adds an optional json output to 'debug:dotenv' command
curious, why do you need a JSON machine format .. compared to current PHP machine format (.env.local.php) perhaps the |
To read information from external projects without changing them. For my understanding, dotenv:dump writes files to a .env.local.php inside the project directory which is not always desired. In my case, I want to get information from a project configuration without changing the project as I'm not in charge for the project. A machine-readable output in DebugCommand allows me to get information from any symfony project without needing to check if there is an .env file or .env.local.php (or something else) from outside. |
Other |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Leveraging the descriptors as suggested seems like a good idea to me.
Co-authored-by: Alexander M. Turek <me@derrabus.de>
Co-authored-by: Alexander M. Turek <me@derrabus.de>
By the way, we need tests for this feature. |
Closing for now as it should leverage the already existing infrastructure, which would make a very different PR. |
adds an optional json output to 'debug:dotenv' command