Skip to content

Commit 026c748

Browse files
VincentLangletfabpot
authored andcommitted
Introduce FlashBagAwareSessionInterface
1 parent a10071b commit 026c748

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?php
2+
3+
/*
4+
* This file is part of the Symfony package.
5+
*
6+
* (c) Fabien Potencier <fabien@symfony.com>
7+
*
8+
* For the full copyright and license information, please view the LICENSE
9+
* file that was distributed with this source code.
10+
*/
11+
12+
namespace Symfony\Component\HttpFoundation\Session;
13+
14+
use Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface;
15+
16+
/**
17+
* Interface for session with a flashbag.
18+
*/
19+
interface FlashBagAwareSessionInterface extends SessionInterface
20+
{
21+
public function getFlashBag(): FlashBagInterface;
22+
}

src/Symfony/Component/HttpFoundation/Session/Session.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class_exists(SessionBagProxy::class);
3030
*
3131
* @implements \IteratorAggregate<string, mixed>
3232
*/
33-
class Session implements SessionInterface, \IteratorAggregate, \Countable
33+
class Session implements FlashBagAwareSessionInterface, \IteratorAggregate, \Countable
3434
{
3535
protected $storage;
3636

0 commit comments

Comments
 (0)
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