Fixed missing exception
This commit is contained in:
parent
1368749b6a
commit
b69d894979
|
@ -13,7 +13,7 @@ namespace Propel\PropelBundle\Security\User;
|
|||
use Symfony\Component\Security\Core\User\UserInterface;
|
||||
use Symfony\Component\Security\Core\User\UserProviderInterface;
|
||||
use Symfony\Component\Security\Core\Exception\UsernameNotFoundException;
|
||||
use Symfony\Component\Security\Core\Exception\UnsupportedAccountException;
|
||||
use Symfony\Component\Security\Core\Exception\UnsupportedUserException;
|
||||
|
||||
/**
|
||||
* ModelUserProvider class.
|
||||
|
@ -83,7 +83,7 @@ class ModelUserProvider implements UserProviderInterface
|
|||
public function refreshUser(UserInterface $user)
|
||||
{
|
||||
if ($user instanceof $this->class) {
|
||||
throw new UnsupportedAccountException(sprintf('Instances of "%s" are not supported.', get_class($user)));
|
||||
throw new UnsupportedUserException(sprintf('Instances of "%s" are not supported.', get_class($user)));
|
||||
}
|
||||
|
||||
return $this->loadUserByUsername($user->getUsername());
|
||||
|
|
Loading…
Reference in a new issue