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

@@ -60,7 +60,7 @@ class CreateCollection extends Command
}
$app = $this->container;
$this->container['manipulator.acl']->resetAdminRights($this->container['manipulator.user']->getRepository()->findAdmins());
$this->container['manipulator.acl']->resetAdminRights($this->container['repo.users']->findAdmins());
$this->container['dispatcher']->dispatch(PhraseaEvents::COLLECTION_CREATE, new CollectionCreateEvent($new_collection));
}