mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-18 15:33:15 +00:00
Fix Injected repository into SuggestionFinder.
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user