Skip to content

Commit 0f94974

Browse files
ymorocuttiYoann MOROCUTTI
andauthored
fix: Fix an issue where serializing objects was not working correctly with Symfony 6.4 (#58)
[symfony6-4] Co-authored-by: Yoann MOROCUTTI <Yoann.MOROCUTTI@boursorama.fr>
1 parent 87c55ed commit 0f94974

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

DataCollector/ProfilerDataCollector.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
use Symfony\Component\HttpKernel\Event\ExceptionEvent;
1212
use Symfony\Component\HttpKernel\Event\RequestEvent;
1313
use Symfony\Component\HttpKernel\Event\ResponseEvent;
14+
use Symfony\Component\Serializer\Normalizer\ObjectNormalizer;
1415
use Symfony\Component\Serializer\Serializer;
1516
use Symfony\Component\Serializer\Encoder\JsonEncoder;
1617
use Symfony\Component\Stopwatch\Stopwatch;
@@ -278,7 +279,7 @@ public function fetchTransferInfos(array $call): array
278279

279280
public function fetchRequestInfos(Request $request): array
280281
{
281-
$normalizers = array(new RequestNormalizer());
282+
$normalizers = array(new RequestNormalizer(), new ObjectNormalizer());
282283
$encoders = array(new JsonEncoder());
283284
$serializer = new Serializer($normalizers, $encoders);
284285

0 commit comments

Comments
 (0)