[HttpFoundation] AutExpireFlashBag should not clear new flashes

This commit is contained in:
Amrouche Hamza 2017-11-28 06:31:17 +01:00
parent e3e239ffb4
commit 7fe3fe8245
No known key found for this signature in database
GPG Key ID: 6968F2785ED4F012
1 changed files with 1 additions and 1 deletions

View File

@ -106,7 +106,7 @@ class AutoExpireFlashBag implements FlashBagInterface
public function all()
{
$return = $this->flashes['display'];
$this->flashes = array('new' => array(), 'display' => array());
$this->flashes['display'] = array();
return $return;
}