X-Git-Url: https://git.rapsys.eu/userbundle/blobdiff_plain/f9a05d2199dbec989e7d53f5c983e601016846c4..2e8c21a0c5d7d2d26d127497bb990f15c9df445d:/Repository/UserRepository.php?ds=inline diff --git a/Repository/UserRepository.php b/Repository/UserRepository.php index da5952f..9f45b95 100644 --- a/Repository/UserRepository.php +++ b/Repository/UserRepository.php @@ -16,10 +16,12 @@ use Symfony\Component\Routing\Generator\UrlGeneratorInterface; use Symfony\Component\Security\Core\User\PasswordAuthenticatedUserInterface; use Symfony\Component\Security\Core\User\PasswordUpgraderInterface; +use Rapsys\UserBundle\Repository; + /** * UserRepository */ -class UserRepository extends EntityRepository implements PasswordUpgraderInterface { +class UserRepository extends Repository implements PasswordUpgraderInterface { /** * Find user count as int * @@ -121,7 +123,7 @@ SQL; 'pseudonym' => $data['pseudonym'], 'groups' => [], 'slug' => $this->slugger->slug($data['pseudonym']), - 'link' => $this->router->generate('rapsys_user_edit', ['mail' => $short = $this->slugger->short($data['mail']), 'hash' => $this->slugger->hash($short)]) + 'link' => $this->router->generate('rapsysuser_edit', ['mail' => $short = $this->slugger->short($data['mail']), 'hash' => $this->slugger->hash($short)]) ]; //With groups @@ -135,7 +137,7 @@ SQL; $ret[$data['id']]['groups'][$id] = [ 'title' => $group = $this->translator->trans($titles[$k]), #'slug' => $this->slugger->slug($group) - #'link' => $this->router->generate('rapsys_user_group_view', ['id' => $id, 'slug' => $this->slugger->short($group)]) + #'link' => $this->router->generate('rapsysuser_group_view', ['id' => $id, 'slug' => $this->slugger->short($group)]) ]; } }