From 026c74820877d35b24fa3996aa05d4f10f6fce4f Mon Sep 17 00:00:00 2001 From: Vincent Langlet Date: Sun, 29 May 2022 10:53:10 +0200 Subject: [PATCH] Introduce FlashBagAwareSessionInterface --- .../Session/FlashBagAwareSessionInterface.php | 22 +++++++++++++++++++ .../HttpFoundation/Session/Session.php | 2 +- 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 src/Symfony/Component/HttpFoundation/Session/FlashBagAwareSessionInterface.php diff --git a/src/Symfony/Component/HttpFoundation/Session/FlashBagAwareSessionInterface.php b/src/Symfony/Component/HttpFoundation/Session/FlashBagAwareSessionInterface.php new file mode 100644 index 0000000000000..90151d38d1c13 --- /dev/null +++ b/src/Symfony/Component/HttpFoundation/Session/FlashBagAwareSessionInterface.php @@ -0,0 +1,22 @@ + + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Symfony\Component\HttpFoundation\Session; + +use Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface; + +/** + * Interface for session with a flashbag. + */ +interface FlashBagAwareSessionInterface extends SessionInterface +{ + public function getFlashBag(): FlashBagInterface; +} diff --git a/src/Symfony/Component/HttpFoundation/Session/Session.php b/src/Symfony/Component/HttpFoundation/Session/Session.php index 4e17e7efc90ff..33a915ba61b53 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Session.php +++ b/src/Symfony/Component/HttpFoundation/Session/Session.php @@ -30,7 +30,7 @@ class_exists(SessionBagProxy::class); * * @implements \IteratorAggregate */ -class Session implements SessionInterface, \IteratorAggregate, \Countable +class Session implements FlashBagAwareSessionInterface, \IteratorAggregate, \Countable { protected $storage; 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