-
Notifications
You must be signed in to change notification settings - Fork 155
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
Fix session deprecation #380
Conversation
dannyvw
commented
Mar 13, 2022
Q | A |
---|---|
Bug fix? | no |
New feature? | no |
BC breaks? | no |
Deprecations? | yes |
Related tickets | partially #335 |
License | MIT |
use Symfony\Component\HttpFoundation\RequestStack; | ||
|
||
/** | ||
* TODO Remove after bumping to > Symfony 5.x |
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.
What about bumping minimal requirements to 4.4 already?
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.
If you meant 5.4, then I agree
Thank you, Danny! 🎉 |
@@ -89,8 +103,14 @@ private function addFlash(string $type, string $message, array $parameters = []) | |||
$message = $this->prepareMessage($message, $parameters); | |||
} | |||
|
|||
if ($this->requestStack instanceof SessionInterface) { |
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.
Having afterthought, perhaps we should wrap it into our custom class, that would do this logic?