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

[HttpKernel] Remove Symfony 3 compatibility code #38894

Merged
merged 1 commit into from Oct 30, 2020

Conversation

derrabus
Copy link
Member

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #38892
License MIT
Doc PR N/A

This PR removes dead code that checks for the presence of the Request::setSessionFactory() method.

That method was added with #25836 in HttpFoundation 4.1. Since HttpKernel requires at least HttpFoundation 4.4, we can assume that the method is always present and thus simplify some code here.

Additionally, I also fix the doc block as described in #38892. 😉

Copy link
Member

@Nyholm Nyholm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Thank you

@Nyholm
Copy link
Member

Nyholm commented Oct 30, 2020

Could you please rebase to let the tests be green before merge?

@Nyholm
Copy link
Member

Nyholm commented Oct 30, 2020

Woop woop. Thank you very much!

@Nyholm Nyholm merged commit 2d511de into symfony:4.4 Oct 30, 2020
@derrabus derrabus deleted the bugfix/lazy-session branch October 30, 2020 15:13
@fabpot fabpot mentioned this pull request Nov 10, 2020
This was referenced Nov 29, 2020
nicolas-grekas added a commit that referenced this pull request Apr 11, 2021
…ctSessionListener::onKernelRequest (StefanoCappellini)

This PR was submitted for the 5.x branch but it was merged into the 4.4 branch instead.

Discussion
----------

Simplified condition and removed unused code from AbstractSessionListener::onKernelRequest

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | None
| License       | MIT

This PR simplifies a condition and removes unused code (AFAIK coming from  #38894)).

Commits
-------

d344b8d Simplified condition and removed unused code from AbstractSessionListener::onKernelRequest
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.

None yet

3 participants