Skip to content

Commit

Permalink
Introduce FlashBagAwareSessionInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
VincentLanglet authored and fabpot committed Jul 3, 2022
1 parent a10071b commit 026c748
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<?php

/*
* This file is part of the Symfony package.
*
* (c) Fabien Potencier <fabien@symfony.com>
*
* 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;
}
2 changes: 1 addition & 1 deletion src/Symfony/Component/HttpFoundation/Session/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class_exists(SessionBagProxy::class);
*
* @implements \IteratorAggregate<string, mixed>
*/
class Session implements SessionInterface, \IteratorAggregate, \Countable
class Session implements FlashBagAwareSessionInterface, \IteratorAggregate, \Countable
{
protected $storage;

Expand Down

0 comments on commit 026c748

Please sign in to comment.