소스 검색

[DoctrineBundle] made tweaked an error message

Fabien Potencier 14 년 전
부모
커밋
f710c9c46c
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/Symfony/Bundle/DoctrineBundle/Security/EntityUserProvider.php

+ 1 - 1
src/Symfony/Bundle/DoctrineBundle/Security/EntityUserProvider.php

@@ -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);