diff --git a/session.rst b/session.rst index aa40cbb20e0..1d4131bd36e 100644 --- a/session.rst +++ b/session.rst @@ -249,6 +249,8 @@ needs. You can use the :method:`Symfony\\Component\\HttpFoundation\\Session\\Flash\\FlashBagInterface::peek` method instead to retrieve the message while keeping it in the bag. + Instead of doing ``$request->getSession()->getFlashBag()``, you can also inject the + ``Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface``. Configuration -------------
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: