Use repositories as services.

This commit is contained in:
Pol Dellaiera
2021-05-12 15:33:18 +02:00
parent 3fc6c0c479
commit aebeefcf80
4 changed files with 10 additions and 11 deletions

View File

@@ -45,7 +45,7 @@ class PersonListWidget implements WidgetInterface
/**
* Repository for persons
*
* @var EntityRepository
* @var PersonRepository
*/
protected $personRepository;
@@ -76,7 +76,7 @@ class PersonListWidget implements WidgetInterface
protected $user;
public function __construct(
EntityRepository $personRepostory,
PersonRepository $personRepostory,
EntityManager $em,
AuthorizationHelper $authorizationHelper,
TokenStorage $tokenStorage