src/PHPDish/Bundle/ForumBundle/Service/TopicManager.php
public function addVoter(TopicInterface $topic, UserInterface $user)
    {
        $topic->addVoter($user)
            ->addVoteCount();
        $this->saveTopic($topic);

        $event = new VoteTopicEvent($topic, $user);
        $this->eventDispatcher->dispatch(Events::TOPIC_VOTED, $event);

    }
public function addVoter(TopicInterface $topic, UserInterface $user)
    {
        $topic->addVoter($user)
            ->addVoteCount();
        $this->saveTopic($topic);

        $event = new VoteTopicEvent($topic, $user);
        $this->eventDispatcher->dispatch(Events::TOPIC_VOTED, $event);

    }
{@inheritdoc}