Skip to content

[FrameworkBundle] Add parameters deprecations to the output of debug:container command #51011

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

Merged
merged 1 commit into from
Oct 11, 2023

Conversation

HeahDude
Copy link
Contributor

Q A
Branch? 6.4
Bug fix? no
New feature? yes
Deprecations? no
Tickets ~
License MIT
Doc PR ~

Since #47719 parameters can be deprecated but one needs to read the deprecation logs carefully.
It would be convenient to have the info when dumping them with debug commands.

Here's a glimpse of text format (the fixtures in tests can do the rest):

Screenshot 2023-07-18 at 12 50 49 PM

I don't know if we really want to support all formats since it may break BC somehow if parsers are used to read the output.
I still tried to adapt them all in this PR for consistency.
But JSON required an object to display both the value and the deprecation, another way could be to add a specific entry for one or all deprecations.

@carsonbot carsonbot added this to the 6.4 milestone Jul 18, 2023
@HeahDude HeahDude force-pushed the feat/debug-deprecated-parameters branch 4 times, most recently from 3546512 to edd49bf Compare July 18, 2023 12:42
@HeahDude HeahDude force-pushed the feat/debug-deprecated-parameters branch 2 times, most recently from feb46c6 to f6d441d Compare July 24, 2023 07:18
@HeahDude HeahDude requested a review from nicolas-grekas August 4, 2023 11:59
@HeahDude HeahDude force-pushed the feat/debug-deprecated-parameters branch from f6d441d to 822b037 Compare September 21, 2023 08:50
Copy link
Member

@nicolas-grekas nicolas-grekas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just minor things

@HeahDude HeahDude force-pushed the feat/debug-deprecated-parameters branch 2 times, most recently from 365ebc8 to 41e1d2c Compare October 7, 2023 09:02
@HeahDude HeahDude force-pushed the feat/debug-deprecated-parameters branch from 41e1d2c to 5e06203 Compare October 11, 2023 07:39
@fabpot
Copy link
Member

fabpot commented Oct 11, 2023

Thank you @HeahDude.

@fabpot fabpot force-pushed the feat/debug-deprecated-parameters branch from 5e06203 to 7963e9d Compare October 11, 2023 07:44
@fabpot fabpot merged commit 4e16f7b into symfony:6.4 Oct 11, 2023
@HeahDude HeahDude deleted the feat/debug-deprecated-parameters branch October 11, 2023 07:45
This was referenced Oct 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants