/**
* Execute this event to flash messages.
*
* @param Notification $notification
* @param NotificationsBag $notificationBag
* @param Message $message
* @return bool
*/
public function onFlash(Notification $notification, NotificationsBag $notificationBag, Message $message)
{
$this->flashContainerNames($notification);
$sessionKey = $this->getConfig()->get('notification.session_prefix');
$sessionKey .= $notificationBag->getName();
$sessionKey .= '_' . $this->generateMessageKey($message);
$this->getSession()->flash($sessionKey, $message->toJson());
return true;
}