Skip to content

[Session] Adding FlashBagInterface #17762

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

Closed
wants to merge 1 commit into from

Conversation

ThomasLandauer
Copy link
Contributor

@ThomasLandauer ThomasLandauer commented Jan 17, 2023

Page: https://symfony.com/doc/5.4/session.html#flash-messages

Info is taken from symfony/symfony#39222 (comment)

Hold on!
After clearing the cache, I'm now getting:

Cannot autowire argument $flashBag of "...": it references interface "Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface" but no such service exists. Did you create a class that implements this interface?

@wouterj
Copy link
Member

wouterj commented Jan 19, 2023

This service was deprecated in 5.1 and is removed in 6.0 (symfony/symfony#36273).

@wouterj wouterj closed this Jan 19, 2023
@ThomasLandauer ThomasLandauer deleted the patch-10 branch January 19, 2023 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants