Property | Type | Description | |
---|---|---|---|
$dispatcher | Newscoop\EventDispatcher\EventDispatcher | ||
$em |
Method | Description | |
---|---|---|
__construct ( |
||
findTopic ( integer $id ) : Newscoop\NewscoopBundle\Entity\Topic | Find topic | |
followTopic ( |
Follow topic by user | |
getTopics ( mixed $user, string $locale = null ) : array | Get user topics | |
saveUserTopics ( |
Save user topics command | |
unfollowTopic ( |
Unfollow topic | |
updateTopics ( |
Update user topics |
Method | Description | |
---|---|---|
notify ( |
Dispatch event |
public __construct ( |
||
$em | ||
$dispatcher | Newscoop\EventDispatcher\EventDispatcher |
public followTopic ( |
||
$user | ||
$topic | ||
return | void |
public saveUserTopics ( |
||
$command | ||
return | void |
public unfollowTopic ( |
||
$user | ||
$topic | ||
return | void |
public updateTopics ( |
||
$user | ||
$topics | array | |
return | void |
protected EventDispatcher,Newscoop\EventDispatcher $dispatcher | ||
return | Newscoop\EventDispatcher\EventDispatcher |