Skip to content

Commit 5c9ffc1

Browse files
Remove some more legacy code
1 parent 544ff7c commit 5c9ffc1

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

Security/User/EntityUserProvider.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,7 @@ public function loadUserByUsername($username)
5555
$user = $this->repository->findOneBy(array($this->property => $username));
5656
} else {
5757
if (!$this->repository instanceof UserLoaderInterface) {
58-
if (!$this->repository instanceof UserProviderInterface) {
59-
throw new \InvalidArgumentException(sprintf('The Doctrine repository "%s" must implement Symfony\Bridge\Doctrine\Security\User\UserLoaderInterface.', get_class($this->repository)));
60-
}
61-
62-
@trigger_error('Implementing loadUserByUsername from Symfony\Component\Security\Core\User\UserProviderInterface is deprecated since version 2.8 and will be removed in 3.0. Implement the Symfony\Bridge\Doctrine\Security\User\UserLoaderInterface instead.', E_USER_DEPRECATED);
58+
throw new \InvalidArgumentException(sprintf('The Doctrine repository "%s" must implement Symfony\Bridge\Doctrine\Security\User\UserLoaderInterface.', get_class($this->repository)));
6359
}
6460

6561
$user = $this->repository->loadUserByUsername($username);

0 commit comments

Comments
 (0)