-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Remove some sf2 references #23936
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
Remove some sf2 references #23936
Conversation
I think changing the key for sessions is also possible. Session would be "lost" when upgrading, or we could add some code to move data from the old key to the new one whenever we read some session data. WDYT? |
I think there should be a "BC" layer for the session for sure, due to e-commerce applications using the session. Other than that, defo 👍 |
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.
OK for me as is, flashes are short lived enough to me to not bother adding a BC layer.
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.
Tests need an update (testGetStorageKey)
I would also suggest changing the session attributes bag key Edit: Or can we just not have a BC layer and ask people to "overwrite" the session service with an |
5017a85
to
1b02654
Compare
I will let someone else remove the remaining sf2 in sessions, with the appropriate BC layer. I would keep the BC layer in 4.0 as well. Just copy from the old key to the new one silently. |
This PR was merged into the 3.4 branch. Discussion ---------- Remove some sf2 references | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Those `sf2` references can be safely remove and changed to `symfony` as there are internal or they don't break anything when upgrading Symfony's version: * Flashes are ephemeral, so changing the key in the session is not a problem; * Changing the local storage key for the profiler is not an issue as this is a dev tool. Commits ------- 1b02654 removed sf2 references
This PR was merged into the 3.4 branch. Discussion ---------- Remove some sf2 references | Q | A | ------------- | --- | Branch? | 3.4 | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | n/a | License | MIT | Doc PR | n/a Those `sf2` references can be safely remove and changed to `symfony` as there are internal or they don't break anything when upgrading Symfony's version: * Flashes are ephemeral, so changing the key in the session is not a problem; * Changing the local storage key for the profiler is not an issue as this is a dev tool. Commits ------- 1b02654 removed sf2 references
Those
sf2
references can be safely remove and changed tosymfony
as there are internal or they don't break anything when upgrading Symfony's version: