Skip to content

[HttpFoundation][HttpKernel] Reset request formats after each main request (7.3) #59109

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

Closed

Conversation

dwgebler
Copy link

@dwgebler dwgebler commented Dec 6, 2024

Add public static method to reset Request format to mime mappings Reset Request format to mime mappings on Kernel boot for each new main request

Q A
Branch? 7.3
Bug fix? no
New feature? yes
Deprecations? no
Issues Fix #59036
License MIT

Adds a new public static method to Request to reset the mappings of formats to MIME types. Adds a call to this method just before resetting services in Kernel::boot().

Add public static method to reset Request format to mime mappings
Reset Request format to mime mappings on Kernel boot for each new main
request
Re-initialize request formats via initializeFormats in resetFormats
@soyuka
Copy link
Contributor

soyuka commented Dec 6, 2024

You can close this actually see my comment on the other Pull Request.

@fabpot fabpot closed this Dec 7, 2024
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.

[HttpFoundation] static Request::$formats can't be reset which causes issues in worker mode
4 participants