-
-
Notifications
You must be signed in to change notification settings - Fork 9.7k
[FrameworkBundle] Allow configuring framework.exceptions with a config builder
#48259
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
e556cab to
89fd991
Compare
|
Given that the XSD and the doc were not in sync before, I indeed doubt this is widely used. But is it possible to keep some BC layer in a |
|
I’ll give it a try. I guess it would then count as a deprecation? |
|
Well, the deprecation will need to be added in 6.3, not in 5.4, as we cannot introduce deprecations in patch versions. |
3f18320 to
22d2fd1
Compare
|
Okay I managed to add a BC layer. This is all I’m not sure how to test it is now possible to configure |
22d2fd1 to
b0eda46
Compare
b0eda46 to
05ab2fb
Compare
05ab2fb to
57e28f6
Compare
|
Thank you @MatTheCat. |
… tag (MatTheCat) This PR was squashed before being merged into the 6.3 branch. Discussion ---------- [FrameworkBundle] Deprecate `framework:exceptions` XML tag | Q | A | ------------- | --- | Branch? | 6.3 | Bug fix? | no | New feature? | no | Deprecations? | yes | Tickets | N/A | License | MIT | Doc PR | N/A Follow-up of #48259 Commits ------- b5eda47 [FrameworkBundle] Deprecate `framework:exceptions` XML tag
…examples (MatTheCat) This PR was merged into the 5.4 branch. Discussion ---------- Update `framework.exceptions` XML and PHP configuration examples symfony/symfony#48259 doc PR Fix #17609 Commits ------- 246b741 Update `framework.exceptions` XML and PHP configuration examples
It seems the
framework.exceptionsdefinition has been wrongly configured for XML. As a result it is not possible to set its value using a config builder.This pull request adds a “right” way to configure
framework.exceptionsusing XML. The old one should be deprecated for6.3and removed for7.0.The documentation is also wrong and should be fixed (ideally after this pull request is merged).
Guidance is requested to add a test (current failures unrelated) 🙏