Browse Source

update method names

main
ghost 1 year ago
parent
commit
6752b7b93e
  1. 2
      src/Repository/UserRepository.php
  2. 2
      src/Service/UserService.php

2
src/Repository/UserRepository.php

@ -21,7 +21,7 @@ class UserRepository extends ServiceEntityRepository @@ -21,7 +21,7 @@ class UserRepository extends ServiceEntityRepository
parent::__construct($registry, User::class);
}
public function findOneByIdField(int $id): ?User
public function getUser(int $id): ?User
{
return $this->createQueryBuilder('u')
->where('u.id = :id')

2
src/Service/UserService.php

@ -63,7 +63,7 @@ class UserService @@ -63,7 +63,7 @@ class UserService
public function get(int $id): ?User
{
return $this->userRepository->findOneByIdField($id);
return $this->userRepository->getUser($id);
}
public function identicon(

Loading…
Cancel
Save