diff --git a/src/Symfony/Component/HttpFoundation/Session/FlashBagAwareSessionInterface.php b/src/Symfony/Component/HttpFoundation/Session/FlashBagAwareSessionInterface.php new file mode 100644 index 000000000000..90151d38d1c1 --- /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 4e17e7efc90f..33a915ba61b5 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