diff --git a/src/Resources/skeleton/security/UserProvider.tpl.php b/src/Resources/skeleton/security/UserProvider.tpl.php index 46e3cf7ea..0765b8412 100644 --- a/src/Resources/skeleton/security/UserProvider.tpl.php +++ b/src/Resources/skeleton/security/UserProvider.tpl.php @@ -17,6 +17,8 @@ class implements UserProviderInterface * this method. * * @return UserInterface + * + * @throws UsernameNotFoundException if the user is not found */ public function loadUserByUsername($username) { @@ -46,8 +48,6 @@ public function refreshUser(UserInterface $user) throw new UnsupportedUserException(sprintf('Invalid user class "%s".', get_class($user))); } - /* @var $user */ - // Return a User object after making sure its data is "fresh". // Or throw a UsernameNotFoundException if the user no longer exists. throw new \Exception('TODO: fill in refreshUser() inside '.__FILE__);