Forráskód Böngészése

merged branch oncletom/patch-1 (PR #1947)

Commits
-------

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

Discussion
----------

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

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

---------------------------------------------------------------------------

by Seldaek at 2011/08/12 02:06:19 -0700

:+1:
Fabien Potencier 13 éve
szülő
commit
81c82fec9b
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      src/Symfony/Component/Serializer/Serializer.php

+ 1 - 1
src/Symfony/Component/Serializer/Serializer.php

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