Skip to content
This repository has been archived by the owner on Dec 5, 2017. It is now read-only.

Commit

Permalink
Merge pull request #32 from sandermarechal/session-start
Browse files Browse the repository at this point in the history
Prevent session start
  • Loading branch information
dbu committed Aug 8, 2013
2 parents 84cec9b + d6a8867 commit 59a47df
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions EventListener/FlashMessageListener.php
Expand Up @@ -48,6 +48,11 @@ public function onKernelResponse(FilterResponseEvent $event)
return;
}

// If there is no session, there can't be any flash messages in it
if (!$this->session->isStarted()) {
return;
}

$flashBag = $this->session->getFlashBag();
$flashes = $flashBag->all();

Expand Down

0 comments on commit 59a47df

Please sign in to comment.