Skip to content
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

[RFC] display console diff when using debug:config & config:dump-reference #54056

Open
94noni opened this issue Feb 26, 2024 · 2 comments
Open
Labels
RFC RFC = Request For Comments (proposals about features that you want to be discussed)

Comments

@94noni
Copy link
Contributor

94noni commented Feb 26, 2024

Description

Actually

php bin/console config:dump-reference web_profiler
web_profiler:
    toolbar:              false
    intercept_redirects:  false
    excluded_ajax_paths:  '^/((index|app(_[\w]+)?)\.php/)?_wdt'
php bin/console debug:config web_profiler
web_profiler:
    toolbar: true
    intercept_redirects: false
    excluded_ajax_paths: '^/((index|app(_[\w]+)?)\.php/)?_wdt'

RFC

We could imagine something like

php bin/console debug:config web_profiler --diff-reference-config
web_profiler:
+     toolbar: true
-     toolbar: false
    intercept_redirects: false
    excluded_ajax_paths: '^/((index|app(_[\w]+)?)\.php/)?_wdt'

Wdyt? do you think it may be doable? it may add lot of value for devs as having all the data locally instead of going to read doc

PS: for now I dont know nor have checked the doability of such things (diff tool, how to get separate command output and handle a smart diff (regarding comments on origin/override or reordering configs keys etc))

Example

Same for example as https://symfony.com/blog/fast-smart-flex-recipe-upgrades-with-recipes-update

@carsonbot carsonbot added the RFC RFC = Request For Comments (proposals about features that you want to be discussed) label Feb 26, 2024
@94noni 94noni changed the title [RFC] display console diff when using config:dump-reference & debug:config [RFC] display console diff when using debug:config & config:dump-reference Feb 26, 2024
@k0d3r1s
Copy link
Contributor

k0d3r1s commented Feb 28, 2024

very nice idea, would help me a lot too.
i would like to try to make this happen

@Neirda24
Copy link
Contributor

Neirda24 commented Mar 3, 2024

I think this is a great idea and would be even nicer if it prints out ->info() as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFC RFC = Request For Comments (proposals about features that you want to be discussed)
Projects
None yet
Development

No branches or pull requests

4 participants