Skip to content

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

@94noni

Description

@94noni

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFCRFC = Request For Comments (proposals about features that you want to be discussed)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions