/**
  *
  * @access public
  * @param \Map2u\ForumBundle\Component\Dispatcher\Event\UserTopicEvent $event
  */
 public function onTopicReplyComplete(UserTopicEvent $event)
 {
     if ($event->getTopic()) {
         if ($event->getTopic()->getId()) {
             $user = $this->securityContext->getToken()->getUser();
             if ($event->authorWantsToSubscribe()) {
                 $this->subscriptionModel->subscribe($event->getTopic(), $user);
             }
             $subscriptions = $this->subscriptionModel->findAllSubscriptionsForTopicById($event->getTopic()->getId());
             $this->subscriptionModel->markTheseAsUnread($subscriptions, $user);
         }
     }
 }
 /**
  *
  * @access public
  * @param \Map2u\ForumBundle\Component\Dispatcher\Event\UserTopicEvent $event
  */
 public function onTopicReplyComplete(UserTopicEvent $event)
 {
     $this->updateTopicStats($event->getTopic());
     $this->updateBoardStats($this->extractBoardFromTopic($event->getTopic()));
     $this->updateRegistryStats($event->getTopic()->getLastPost());
 }
 /**
  *
  * @access public
  * @param \Map2u\ForumBundle\Component\Dispatcher\Event\UserTopicEvent $event
  */
 public function onTopicReplyComplete(UserTopicEvent $event)
 {
     if ($event->getTopic()) {
         if ($event->getTopic()->getId()) {
             $this->session->getFlashBag()->add('success', 'Successfully replied to the topic "' . $event->getTopic()->getTitle() . '"');
         }
     }
 }