Add user repository as a service

This commit is contained in:
Romain Neutron
2014-02-27 17:02:29 +01:00
parent ed8f98432d
commit 8f87e8b1c8
53 changed files with 127 additions and 123 deletions

View File

@@ -34,7 +34,7 @@ abstract class eventsmanager_notifyAbstract extends eventsmanager_eventAbstract
protected function shouldSendNotificationFor($usrId)
{
$user = $this->app['manipulator.user']->getRepository()->find($usrId);
$user = $this->app['repo.users']->find($usrId);
return $this->app['settings']->getUserNotificationSetting($user, get_class($this));
}