Пример #1
0
 public function findByUsername($username)
 {
     return $this->repository->findByUsername($username);
 }
Пример #2
0
 /**
  * @param string $username
  * @return User|null
  */
 public function loadUserByUsername($username)
 {
     return $this->userRepository->findByUsername($username);
 }