Knp\Bundle\KnpBundlesBundle\Security\Core\User\UserProvider::refreshUser PHP Method

refreshUser() public method

public refreshUser ( Symfony\Component\Security\Core\User\UserInterface $user )
$user Symfony\Component\Security\Core\User\UserInterface
    public function refreshUser(UserInterface $user)
    {
        $refreshedUser = $this->ownerManager->findDeveloperBy(array('id' => $user->getId()));
        if (null === $refreshedUser) {
            throw new UsernameNotFoundException(sprintf('User with ID "%d" could not be reloaded.', $user->getId()));
        }
        return $refreshedUser;
    }