Fix calls to templating service

This commit is contained in:
2023-08-02 22:49:02 +02:00
parent f2d391ea2e
commit 24cc6a816b
2 changed files with 10 additions and 3 deletions

View File

@@ -33,6 +33,7 @@ use Symfony\Component\Form\Extension\Core\Type\SubmitType;
use Symfony\Component\Form\Form;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpFoundation\Session\SessionBagInterface;
use Symfony\Component\HttpFoundation\Session\SessionInterface;
use Symfony\Component\Routing\Annotation\Route;
use Symfony\Component\Security\Core\Security;
@@ -55,7 +56,7 @@ final class PersonController extends AbstractController
private readonly PersonRepository $personRepository,
private readonly ConfigPersonAltNamesHelper $configPersonAltNameHelper,
private readonly ValidatorInterface $validator,
private readonly EntityManagerInterface $em
private readonly EntityManagerInterface $em,
) {
}
@@ -96,7 +97,7 @@ final class PersonController extends AbstractController
$this->get('session')->getFlashBag()
->add(
'success',
$this->get('translator')
$this->translator
->trans('The person data has been updated')
);