mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-07 18:44:08 +00:00
DX: remove unused property on PersonController
This commit is contained in:
parent
a0d4a995d3
commit
7f96a895e1
@ -49,15 +49,11 @@ final class PersonController extends AbstractController
|
||||
{
|
||||
public function __construct(
|
||||
private readonly AuthorizationHelperInterface $authorizationHelper,
|
||||
protected SimilarPersonMatcher $similarPersonMatcher,
|
||||
protected TranslatorInterface $translator,
|
||||
protected EventDispatcherInterface $eventDispatcher,
|
||||
/**
|
||||
* @var PersonRepository;
|
||||
*/
|
||||
protected PersonRepository $personRepository,
|
||||
protected ConfigPersonAltNamesHelper $configPersonAltNameHelper,
|
||||
private readonly LoggerInterface $logger,
|
||||
private readonly SimilarPersonMatcher $similarPersonMatcher,
|
||||
private readonly TranslatorInterface $translator,
|
||||
private readonly EventDispatcherInterface $eventDispatcher,
|
||||
private readonly PersonRepository $personRepository,
|
||||
private readonly ConfigPersonAltNamesHelper $configPersonAltNameHelper,
|
||||
private readonly ValidatorInterface $validator,
|
||||
private readonly EntityManagerInterface $em
|
||||
) {
|
||||
@ -256,7 +252,7 @@ final class PersonController extends AbstractController
|
||||
);
|
||||
}
|
||||
|
||||
public function viewAction($person_id)
|
||||
public function viewAction(int $person_id)
|
||||
{
|
||||
$person = $this->_getPerson($person_id);
|
||||
|
||||
@ -290,7 +286,7 @@ final class PersonController extends AbstractController
|
||||
*
|
||||
* @return \Chill\PersonBundle\Entity\Person
|
||||
*/
|
||||
private function _getPerson(mixed $id)
|
||||
private function _getPerson(int $id)
|
||||
{
|
||||
return $this->personRepository->find($id);
|
||||
}
|
||||
|
@ -1,6 +1,9 @@
|
||||
services:
|
||||
Chill\PersonBundle\Controller\PersonController:
|
||||
_defaults:
|
||||
autowire: true
|
||||
autoconfigure: true
|
||||
|
||||
Chill\PersonBundle\Controller\PersonController:
|
||||
tags: ['controller.service_arguments']
|
||||
|
||||
Chill\PersonBundle\Controller\TimelinePersonController:
|
||||
|
Loading…
x
Reference in New Issue
Block a user