Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[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

Merged
merged 1 commit into from
Dec 13, 2022

Conversation

MatTheCat
Copy link
Contributor

@MatTheCat MatTheCat commented Nov 20, 2022

Q A
Branch? 5.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #48191
License MIT
Doc PR symfony/symfony-docs#17455

It seems the framework.exceptions definition 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.exceptions using XML. The old one should be deprecated for 6.3 and removed for 7.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) 🙏

@stof
Copy link
Member

stof commented Nov 21, 2022

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 beforeNormalization instead ? For the XSD, we would then keep a BC type for framework:exceptions

@MatTheCat
Copy link
Contributor Author

I’ll give it a try. I guess it would then count as a deprecation?

@stof
Copy link
Member

stof commented Nov 21, 2022

Well, the deprecation will need to be added in 6.3, not in 5.4, as we cannot introduce deprecations in patch versions.

@MatTheCat MatTheCat force-pushed the ticket_48191 branch 2 times, most recently from 3f18320 to 22d2fd1 Compare November 21, 2022 11:28
@MatTheCat
Copy link
Contributor Author

Okay I managed to add a BC layer. This is all 5.4 needs right?

I’m not sure how to test it is now possible to configure framework.exceptions with a config builder though 🤔

@nicolas-grekas
Copy link
Member

Thank you @MatTheCat.

@nicolas-grekas nicolas-grekas merged commit 5a68b8c into symfony:5.4 Dec 13, 2022
@MatTheCat MatTheCat deleted the ticket_48191 branch December 13, 2022 10:39
@fabpot fabpot mentioned this pull request Dec 16, 2022
fabpot added a commit that referenced this pull request Dec 22, 2022
… 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
This was referenced Dec 28, 2022
OskarStark added a commit to symfony/symfony-docs that referenced this pull request Jan 11, 2023
…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
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