Skip to content

Commit

Permalink
Add user preference service to aggregate repository implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Sep 18, 2018
1 parent 160b64c commit 7bd14c0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions lib/Core/Repository/Aggregate/Repository.php
Expand Up @@ -97,6 +97,15 @@ public function getNotificationService()
return $this->ezRepository->getNotificationService();
}

public function getUserPreferenceService()
{
if (!method_exists($this->ezRepository, 'getUserPreferenceService')) {
throw new RuntimeException(sprintf('getUserPreferenceService method does not exist in %s class', get_class($this->ezRepository)));
}

return $this->ezRepository->getUserPreferenceService();
}

public function getContentService()
{
return $this->ezRepository->getContentService();
Expand Down

0 comments on commit 7bd14c0

Please sign in to comment.