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

Replace deprecated Session with RequestStack, for Symfony 5.3 #54

Merged
merged 3 commits into from
Jun 28, 2022

Conversation

samwilson
Copy link
Member

@samwilson samwilson commented Jun 22, 2022

Copy link
Member

@theresnotime theresnotime left a comment

Choose a reason for hiding this comment

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

+1 — lgtm, checks pass but not tested

Copy link
Member

@MusikAnimal MusikAnimal left a comment

Choose a reason for hiding this comment

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

I was going to say that in this bundle, we should make sure not to use RequestStack::getSession() since that isn't a thing in Symfony 4, but looks like you're always getting the session from the Request object, hence we should be good :)

@MusikAnimal MusikAnimal merged commit a336ffe into master Jun 28, 2022
@MusikAnimal MusikAnimal deleted the deprecated-session branch June 28, 2022 02:24
@samwilson
Copy link
Member Author

I was going to say that in this bundle, we should make sure not to use RequestStack::getSession() since that isn't a thing in Symfony 4, but looks like you're always getting the session from the Request object, hence we should be good :)

That's a good point, but yeah it should be okay. I'm also currently looking at upgrading SVG Translate from Symfony 4 anyway (which I guess just leaves XTools?).

@MusikAnimal
Copy link
Member

MusikAnimal commented Jul 11, 2022

XTools is stuck on 4.4 until we (or I, really) figure out what to do with XtoolsController. In previous attempts I was unsuccessful in getting it to extend AbstractController instead the older Controller class without it causing major breakage. Maybe Inspiration Week is a good time to take another look, though!

XTools doesn't use the bundle anyway, due to #25

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants