Свойство | Type | Description | |
---|---|---|---|
$dispatcher | Newscoop\EventDispatcher\EventDispatcher | ||
$em |
Méthode | 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 |
Méthode | Description | |
---|---|---|
notify ( |
Dispatch event |
public __construct ( |
||
$em | ||
$dispatcher | Newscoop\EventDispatcher\EventDispatcher |
public followTopic ( |
||
$user | ||
$topic | ||
Résultat | void |
public saveUserTopics ( |
||
$command | ||
Résultat | void |
public unfollowTopic ( |
||
$user | ||
$topic | ||
Résultat | void |
public updateTopics ( |
||
$user | ||
$topics | array | |
Résultat | void |
protected EventDispatcher,Newscoop\EventDispatcher $dispatcher | ||
Résultat | Newscoop\EventDispatcher\EventDispatcher |