diff --git a/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodWorkEvaluationDocumentDuplicateController.php b/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodWorkEvaluationDocumentDuplicateController.php index 2420e4ecb..db3045602 100644 --- a/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodWorkEvaluationDocumentDuplicateController.php +++ b/src/Bundle/ChillPersonBundle/Controller/AccompanyingPeriodWorkEvaluationDocumentDuplicateController.php @@ -27,14 +27,14 @@ use Symfony\Component\Serializer\Normalizer\AbstractNormalizer; use Symfony\Component\Serializer\SerializerInterface; use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter; -class AccompanyingPeriodWorkEvaluationDocumentDuplicateController +readonly class AccompanyingPeriodWorkEvaluationDocumentDuplicateController { public function __construct( - private readonly AccompanyingPeriodWorkEvaluationDocumentDuplicator $duplicator, - private readonly Security $security, - private readonly SerializerInterface $serializer, - private readonly EntityManagerInterface $entityManager, - private readonly ChillUrlGeneratorInterface $urlGenerator, + private AccompanyingPeriodWorkEvaluationDocumentDuplicator $duplicator, + private Security $security, + private SerializerInterface $serializer, + private EntityManagerInterface $entityManager, + private ChillUrlGeneratorInterface $urlGenerator, ) {} #[Route('/api/1.0/person/accompanying-course-work-evaluation-document/{id}/duplicate', methods: ['POST'])] @@ -78,8 +78,6 @@ class AccompanyingPeriodWorkEvaluationDocumentDuplicateController $this->entityManager->persist($evaluation); $this->entityManager->flush(); - dump($duplicatedDocument); - return new JsonResponse( $this->serializer->serialize($duplicatedDocument, 'json', [AbstractNormalizer::GROUPS => ['read']]), json: true