diff --git a/src/Bundle/ChillPersonBundle/src/Controller/PersonController.php b/src/Bundle/ChillPersonBundle/src/Controller/PersonController.php index 003fefbca..c116f5306 100644 --- a/src/Bundle/ChillPersonBundle/src/Controller/PersonController.php +++ b/src/Bundle/ChillPersonBundle/src/Controller/PersonController.php @@ -34,7 +34,6 @@ use Symfony\Component\HttpFoundation\Response; use Symfony\Component\Security\Core\Role\Role; use Chill\PersonBundle\Security\Authorization\PersonVoter; use Chill\PersonBundle\Search\SimilarPersonMatcher; -use Symfony\Component\Translation\TranslatorInterface; use Chill\MainBundle\Search\SearchProvider; use Chill\PersonBundle\Repository\PersonRepository; use Chill\PersonBundle\Config\ConfigPersonAltNamesHelper; @@ -42,6 +41,7 @@ use Chill\PersonBundle\Repository\PersonNotDuplicateRepository; use Symfony\Component\Validator\Validator\ValidatorInterface; use Doctrine\ORM\EntityManagerInterface; use Symfony\Component\Routing\Annotation\Route; +use Symfony\Contracts\Translation\TranslatorInterface; final class PersonController extends AbstractController { @@ -183,7 +183,7 @@ final class PersonController extends AbstractController * path="/{_locale}/person/{person_id}/general/update" * ) */ - public function updateAction($person_id, Request $request) + public function updateAction($person_id, Request $request, TranslatorInterface $translator) { $person = $this->_getPerson($person_id); @@ -212,7 +212,7 @@ final class PersonController extends AbstractController $this->get('session')->getFlashBag() ->add('success', - $this->get('translator') + $translator ->trans('The person data has been updated') );