mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-08-22 15:43:51 +00:00
Remove dump
This commit is contained in:
@@ -27,14 +27,14 @@ use Symfony\Component\Serializer\Normalizer\AbstractNormalizer;
|
|||||||
use Symfony\Component\Serializer\SerializerInterface;
|
use Symfony\Component\Serializer\SerializerInterface;
|
||||||
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
|
use Sensio\Bundle\FrameworkExtraBundle\Configuration\ParamConverter;
|
||||||
|
|
||||||
class AccompanyingPeriodWorkEvaluationDocumentDuplicateController
|
readonly class AccompanyingPeriodWorkEvaluationDocumentDuplicateController
|
||||||
{
|
{
|
||||||
public function __construct(
|
public function __construct(
|
||||||
private readonly AccompanyingPeriodWorkEvaluationDocumentDuplicator $duplicator,
|
private AccompanyingPeriodWorkEvaluationDocumentDuplicator $duplicator,
|
||||||
private readonly Security $security,
|
private Security $security,
|
||||||
private readonly SerializerInterface $serializer,
|
private SerializerInterface $serializer,
|
||||||
private readonly EntityManagerInterface $entityManager,
|
private EntityManagerInterface $entityManager,
|
||||||
private readonly ChillUrlGeneratorInterface $urlGenerator,
|
private ChillUrlGeneratorInterface $urlGenerator,
|
||||||
) {}
|
) {}
|
||||||
|
|
||||||
#[Route('/api/1.0/person/accompanying-course-work-evaluation-document/{id}/duplicate', methods: ['POST'])]
|
#[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->persist($evaluation);
|
||||||
$this->entityManager->flush();
|
$this->entityManager->flush();
|
||||||
|
|
||||||
dump($duplicatedDocument);
|
|
||||||
|
|
||||||
return new JsonResponse(
|
return new JsonResponse(
|
||||||
$this->serializer->serialize($duplicatedDocument, 'json', [AbstractNormalizer::GROUPS => ['read']]),
|
$this->serializer->serialize($duplicatedDocument, 'json', [AbstractNormalizer::GROUPS => ['read']]),
|
||||||
json: true
|
json: true
|
||||||
|
Reference in New Issue
Block a user