/**
  * React to topic viewing by updating the view count.
  *
  * @param TopicEventInterface $event
  */
 public function onViewTopic(TopicEventInterface $event)
 {
     $topic = $event->getTopic();
     $user = $event->getUser();
     $this->topicManager->markTopicAsViewed($topic, $user);
 }