Added $format in serialize() method, to keep consistence and give a hint to the normalizer.

This commit is contained in:
Oncle Tom 2011-08-12 12:01:28 +03:00
parent 4499d24180
commit ae55a98604

View File

@ -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);