Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Resources/skeleton/security/UserProvider.tpl.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ class <?= $class_name ?> implements UserProviderInterface
* this method.
*
* @return UserInterface
*
* @throws UsernameNotFoundException if the user is not found
*/
public function loadUserByUsername($username)
{
Expand Down Expand Up @@ -46,8 +48,6 @@ public function refreshUser(UserInterface $user)
throw new UnsupportedUserException(sprintf('Invalid user class "%s".', get_class($user)));
}

/* @var <?= $user_short_name ?> $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__);
Expand Down