Example #1
0
 /**
  * @DI\Observe("log")
  *
  * @param LogGenericEvent $event
  */
 public function onLog(LogGenericEvent $event)
 {
     if ($event instanceof NotifiableInterface && $this->ch->getParameter('is_notification_active')) {
         if ($event->isAllowedToNotify()) {
             $this->notificationManager->createNotificationAndNotify($event);
         }
     }
 }