Skip to content
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

Fixed issue wit Symfony6 BC break #184

Conversation

KonstantinPopov
Copy link
Contributor

@KonstantinPopov KonstantinPopov commented Apr 15, 2022

Symfony Bootstraps used HttpFoundation\Request constants for booting application.
in Symfony6 was removed deprecated const Symfony\Component\HttpFoundation\Request::HEADER_X_FORWARDED_ALL
was replaced on. HEADER_X_FORWARDED_FOR | HEADER_X_FORWARDED_HOST | HEADER_X_FORWARDED_PORT | HEADER_X_FORWARDED_PROTO as described on symfony recommendation.

@KonstantinPopov KonstantinPopov force-pushed the fix-symfony6-http-foundation-request-support-bc branch from 02a9900 to 524cc75 Compare April 15, 2022 10:10
@andig
Copy link
Contributor

andig commented Apr 15, 2022

I wouldn‘t know. Any objections?

@KonstantinPopov
Copy link
Contributor Author

I wouldn‘t know. Any objections?

https://github.com/symfony/http-foundation/blob/5.4/Request.php#L52
in Symfony 6 this const was removed.
so after update receive error

@mathieudz
Copy link
Contributor

@andig Fine with me, please merge. I need it too.

@andig andig merged commit fea41ee into php-pm:master May 29, 2022
@KonstantinPopov KonstantinPopov deleted the fix-symfony6-http-foundation-request-support-bc branch July 2, 2023 21:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants