-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[FrameworkBundle] Deprecate flashbag and attributebag services #36273
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
[FrameworkBundle] Deprecate flashbag and attributebag services #36273
Conversation
63fef32
to
2e4bc95
Compare
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.
Thanks, just minor comments on my side.
src/Symfony/Bundle/FrameworkBundle/Resources/config/session.xml
Outdated
Show resolved
Hide resolved
src/Symfony/Bundle/FrameworkBundle/Resources/config/session.xml
Outdated
Show resolved
Hide resolved
f35df01
to
4baed97
Compare
rebased to resolve conflicts |
Actually, please rebase again to account for #35778, thanks :) |
@nicolas-grekas rebased and now using new deprecated attributes. Nice feature @atailouloute |
Thank you @warslett. |
298452a
to
f9b52fe
Compare
I agree that this shouldn't be injected, however i'm running into an issue with this deprecation, namely: The Maybe this method should be added to the interface? |
FlashBag and AttributeBag are data objects and so should not be available via the service container. The preferred method for accessing these objects is via
$session->getFlashBag()
or$session->getAttributeBag()