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 ------------- pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

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:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy