Added $format in serialize() method, to keep consistence and give a hint to the normalizer.
This commit is contained in:
parent
4499d24180
commit
ae55a98604
@ -69,7 +69,7 @@ class Serializer implements SerializerInterface
|
||||
$encoder = $this->getEncoder($format);
|
||||
|
||||
if (!$encoder instanceof NormalizationAwareInterface) {
|
||||
$data = $this->normalize($data);
|
||||
$data = $this->normalize($data, $format);
|
||||
}
|
||||
|
||||
return $this->encode($data, $format);
|
||||
|
Reference in New Issue
Block a user