Fix Injected repository into SuggestionFinder.

This commit is contained in:
Benoît Burnichon
2016-03-15 10:31:10 +01:00
parent 3944580f8c
commit f3ca8121de

View File

@@ -15,13 +15,13 @@ use Alchemy\Phrasea\Authentication\Exception\NotAuthenticatedException;
use Alchemy\Phrasea\Authentication\Provider\Token\Token; use Alchemy\Phrasea\Authentication\Provider\Token\Token;
use Alchemy\Phrasea\Authentication\Provider\Token\Identity; use Alchemy\Phrasea\Authentication\Provider\Token\Identity;
use Alchemy\Phrasea\Model\Entities\User; use Alchemy\Phrasea\Model\Entities\User;
use Doctrine\Common\Persistence\ObjectRepository; use Alchemy\Phrasea\Model\Repositories\UserRepository;
class SuggestionFinder class SuggestionFinder
{ {
private $repository; private $repository;
public function __construct(ObjectRepository $repository) public function __construct(UserRepository $repository)
{ {
$this->repository = $repository; $this->repository = $repository;
} }