public function refreshUser(UserInterface $user)
    {
        if (!is_a($user, $this->userClass)) {
            throw new UnsupportedUserException(sprintf('Unsupported class "%s".', \get_class($user)));
        }

        $user = $this->loadUserByUsername($user->getUsername());

        $this->validateSessionLifetime($user);
        $this->triggerPostAuthenticateHook($user);

        return $user;
    }
public function refreshUser(UserInterface $user)
    {
        if (!is_a($user, $this->userClass)) {
            throw new UnsupportedUserException(sprintf('Unsupported class "%s".', \get_class($user)));
        }

        $user = $this->loadUserByUsername($user->getUsername());

        $this->validateSessionLifetime($user);
        $this->triggerPostAuthenticateHook($user);

        return $user;
    }
public function refreshUser ( UserInterface $ user ) { if ( ! is_a ( $ user , $ this -> userClass ) ) { throw new UnsupportedUserException ( sprintf ( 'Unsupported class "%s".' , \ get_class ( $ user ) ) ) ; } $ user = $ this -> loadUserByUsername ( $ user -> getUsername ( ) ) ; $ this -> validateSessionLifetime ( $ user ) ; $ this -> triggerPostAuthenticateHook ( $ user ) ; return $ user ; }
{@inheritdoc}
{