-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[DependencyInjection] Enable deprecating parameters #47719
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
stof
left a comment
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.
This misses the update of the ContainerBuilder merging to copy the deprecations.
750ef59 to
02f5339
Compare
Thanks for the heads-up :), fixed! |
src/Symfony/Component/DependencyInjection/Loader/XmlFileLoader.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/DependencyInjection/ParameterBag/FrozenParameterBag.php
Show resolved
Hide resolved
src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBag.php
Outdated
Show resolved
Hide resolved
src/Symfony/Component/DependencyInjection/ParameterBag/ParameterBagInterface.php
Outdated
Show resolved
Hide resolved
c662cd1 to
62455c9
Compare
|
The new implementation does not trigger deprecations in the API itself, so the label can be removed. |
fcb85cd to
a22b22c
Compare
8172f78 to
e47d070
Compare
8a2634a to
d3ee161
Compare
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.
I just squashed+added a commit with some tweaks.
LGTM thanks!
|
While trying the feature I realized that the |
63d39b0 to
bb6432b
Compare
bb6432b to
c806be8
Compare
nicolas-grekas
left a comment
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.
Still 👍 on my side after the last changes
/cc @symfony/mergers any other comments?
|
Thank you @HeahDude. |
c806be8 to
0f0a2fb
Compare
|
gh went wrong due to some race condition, merged in be5fbce |
|
Looks like there was no doc issue opened 🤔 |
…utput of `debug:container` command (HeahDude) This PR was squashed before being merged into the 6.4 branch. Discussion ---------- [FrameworkBundle] Add parameters deprecations to the output of `debug:container` command | 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): <img width="1126" alt="Screenshot 2023-07-18 at 12 50 49 PM" src="https://github.com/symfony/symfony/assets/10107633/6a2ea20b-be3c-4428-bb5d-aa97f3b38803"> 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. Commits ------- 7963e9d [FrameworkBundle] Add parameters deprecations to the output of `debug:container` command
Following #47680, this PR allows deprecating parameters either to move to build parameters, or to rename them or just to be able to remove them in a BC way.
TODO: