Conditions | 2 |
Paths | 2 |
Total Lines | 10 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
43 | public function refreshUser(UserInterface $user) |
||
44 | { |
||
45 | if (!$this->supportsClass(get_class($user))) { |
||
46 | throw new UnsupportedUserException( |
||
47 | sprintf('Instances of "%s" are not supported.', get_class($user)) |
||
48 | ); |
||
49 | } |
||
50 | |||
51 | return $this->loadUserByUsername($user->getUsername()); |
||
52 | } |
||
53 | |||
62 |