Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork9.7k
[HttpKernel] Fix compatibility with Symfony6#41343
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
nicolas-grekas commentedMay 20, 2021
For 5.3? |
src/Symfony/Component/HttpKernel/EventListener/AbstractSessionListener.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/HttpKernel/EventListener/SessionListener.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
jderusse commentedMay 20, 2021
Rebased.. But 5.3 is not compatible with FWB 6.0 |
nicolas-grekas commentedMay 21, 2021
OK, then let's go on 5.4. Don't miss adding changelog+upgrade files entries. |
src/Symfony/Component/HttpKernel/EventListener/SessionListener.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
nicolas-grekas left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
(blocking until proposal is discussed)
Uh oh!
There was an error while loading.Please reload this page.
src/Symfony/Component/HttpKernel/EventListener/AbstractSessionListener.php OutdatedShow resolvedHide resolved
Uh oh!
There was an error while loading.Please reload this page.
a9e3e16 toda40387Compareff8b9fb tob317830Comparenicolas-grekas commentedMay 27, 2021
Thank you@jderusse. |
…r (jderusse)This PR was merged into the 5.4 branch.Discussion----------[HttpKernel] Provide migration path for TestSessionListener| Q | A| ------------- | ---| Branch? | 5.4| Bug fix? | yes| New feature? | no| Deprecations? | no| Tickets | -| License | MIT| Doc PR | -When working on#41321 I realized that#41343 was wrong for `TestSessionListener`.Injecting the factory in both SessionListener AND TestSessionListener would generate 2 distinguished session instances which is the opposite of the expected behavior: TestSessionListener needs the session used by the request to set the right sessionId in the cookie.This PR fallback to `request->getSession()` when there is no session injected in the container (ie: FrameworkBundlke:6)Commits-------b56606e Provide migration path for TestSessionListener
…erusse)This PR was merged into the 6.0 branch.Discussion----------[FrameworkBundle] Remove deprecate session service| Q | A| ------------- | ---| Branch? | 6.0| Bug fix? | no| New feature? | no| Deprecations? | no| Tickets | -| License | MIT| Doc PR | -To ease code review this PR only removes code for session.Blocked by#41343Commits-------9e6a3d3 Remove deprecate session service
Uh oh!
There was an error while loading.Please reload this page.
The
sessionservice will be removed in FrameworkBundle 6, this PR make sure the session listener 5.4 will be compatible with FrameworkBundle 6.0