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

@@ -81,7 +81,7 @@ class module_console_systemMailCheck extends Command
$id = $dialog->ask($output, '<question>Which id ?</question>', '');
try {
$tmp_user = $this->container['manipulator.user']->getRepository()->find($id);
$tmp_user = $this->container['repo.users']->find($id);
if ($tmp_user->getEmail() != $email) {
throw new Exception('Invalid user');