소스 검색

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 년 전
부모
커밋
81c82fec9b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);