protected function addNotification($message)
    {
        $event = new NotificationEvent();
        $event->setMessage($message);
        
        $this
            ->eventDispatcher
            ->dispatch(NotificationEvent::NAME, $event)
        ;
    }
protected function addNotification($message)
    {
        $event = new NotificationEvent();
        $event->setMessage($message);
        
        $this
            ->eventDispatcher
            ->dispatch(NotificationEvent::NAME, $event)
        ;
    }
protected function addNotification ( $ message ) { $ event = new NotificationEvent ( ) ; $ event -> setMessage ( $ message ) ; $ this -> eventDispatcher -> dispatch ( NotificationEvent :: NAME , $ event ) ; }
Add a notification to the subscriber.

@param $message
Add a notification to the subscriber .