Newscoop\Services\UserTopicService::notify PHP Method

notify() private method

Dispatch event
private notify ( User $user, Topic $topic )
$user Newscoop\Entity\User
$topic Newscoop\NewscoopBundle\Entity\Topic
    private function notify(User $user, Topic $topic)
    {
        if (empty($this->dispatcher)) {
            return;
        }
        $this->dispatcher->dispatch('topic.follow', new \Newscoop\EventDispatcher\Events\GenericEvent($this, array('topic_name' => $topic->getName(), 'topic_id' => $topic->getTopicId(), 'user' => $user)));
    }