Conditions | 2 |
Paths | 2 |
Total Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
27 | public function loadUserByUsername($username): UserInterface |
||
28 | { |
||
29 | try { |
||
30 | return $this->userRepository->fetchOneByUsername($username); |
||
31 | } catch (RecordNotFoundException $e) { |
||
32 | throw new UsernameNotFoundException('User by username "' . $username . '" not found!', 0, $e); |
||
33 | } |
||
34 | } |
||
35 | |||
50 |