/**
* @param array<NormalizerInterface|DenormalizerInterface> $normalizers
* @param array<EncoderInterface|DecoderInterface> $encoders
*/
public function __construct( private array
$normalizers =
[],
array
$encoders =
[],
) { foreach ($normalizers as $normalizer) { if ($normalizer instanceof SerializerAwareInterface
) { $normalizer->
setSerializer($this);
} if ($normalizer instanceof DenormalizerAwareInterface
) { $normalizer->
setDenormalizer($this);
} if ($normalizer instanceof NormalizerAwareInterface
) { $normalizer->
setNormalizer($this);
} if (!
($normalizer instanceof NormalizerInterface ||
$normalizer instanceof DenormalizerInterface
)) {