From 43d6ba1d159cfac404689e33d4133696cfc5f4e0 Mon Sep 17 00:00:00 2001 From: Lesnykh Ilia Date: Wed, 12 Apr 2017 15:29:41 +0300 Subject: [PATCH] Add getFlashBag method to Session interface. --- src/Symfony/Component/HttpFoundation/Session/Session.php | 4 +--- .../Component/HttpFoundation/Session/SessionInterface.php | 8 ++++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/src/Symfony/Component/HttpFoundation/Session/Session.php b/src/Symfony/Component/HttpFoundation/Session/Session.php index cdd97375b9054..83b6a47ada18b 100644 --- a/src/Symfony/Component/HttpFoundation/Session/Session.php +++ b/src/Symfony/Component/HttpFoundation/Session/Session.php @@ -238,9 +238,7 @@ public function getBag($name) } /** - * Gets the flashbag interface. - * - * @return FlashBagInterface + * {@inheritdoc} */ public function getFlashBag() { diff --git a/src/Symfony/Component/HttpFoundation/Session/SessionInterface.php b/src/Symfony/Component/HttpFoundation/Session/SessionInterface.php index d3fcd2eec4e73..de0723e35de0c 100644 --- a/src/Symfony/Component/HttpFoundation/Session/SessionInterface.php +++ b/src/Symfony/Component/HttpFoundation/Session/SessionInterface.php @@ -11,6 +11,7 @@ namespace Symfony\Component\HttpFoundation\Session; +use Symfony\Component\HttpFoundation\Session\Flash\FlashBagInterface; use Symfony\Component\HttpFoundation\Session\Storage\MetadataBag; /** @@ -179,4 +180,11 @@ public function getBag($name); * @return MetadataBag */ public function getMetadataBag(); + + /** + * Gets the flashbag interface. + * + * @return FlashBagInterface + */ + public function getFlashBag(); }