[DoctrineBundle] made tweaked an error message
This commit is contained in:
parent
4027f751e3
commit
f710c9c46c
@ -26,7 +26,7 @@ class EntityUserProvider implements UserProviderInterface
|
||||
$user = $this->repository->findOneBy(array($this->property => $username));
|
||||
} else {
|
||||
if (!$this->repository instanceof UserProviderInterface) {
|
||||
throw new \InvalidArgumentException('The Doctrine user manager must implement UserManagerInterface.');
|
||||
throw new \InvalidArgumentException(sprintf('The Doctrine repository "%s" must implement UserProviderInterface.', get_class($this->repository)));
|
||||
}
|
||||
|
||||
$user = $this->repository->loadUserByUsername($username);
|
||||
|
Reference in New Issue
Block a user