public function onNotify(NotificationEvent $event) {
        if (true === ($this->getSession() instanceof Session)) {
            $this->getSession()->getFlashBag()->add($event->getNotification()->getType(), $event->getNotification()->getContent());
        }
        return $event;
    }
public function onNotify(NotificationEvent $event) {
        if (true === ($this->getSession() instanceof Session)) {
            $this->getSession()->getFlashBag()->add($event->getNotification()->getType(), $event->getNotification()->getContent());
        }
        return $event;
    }
public function onNotify ( NotificationEvent $ event ) { if ( true === ( $ this -> getSession ( ) instanceof Session ) ) { $ this -> getSession ( ) -> getFlashBag ( ) -> add ( $ event -> getNotification ( ) -> getType ( ) , $ event -> getNotification ( ) -> getContent ( ) ) ; } return $ event ; }
On notify.

@param NotificationEvent $event The event.
@return NotificationEvent Returns the event.
On notify .