瀏覽代碼

Merge pull request #82 from SyslogicNL/master

Use the AnnotationReader interface in the SerializerBuilder, instead of the implemented AnnotationReader itself
Johannes 12 年之前
父節點
當前提交
635242b91d
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      src/JMS/Serializer/SerializerBuilder.php

+ 2 - 1
src/JMS/Serializer/SerializerBuilder.php

@@ -36,6 +36,7 @@ use JMS\Serializer\Construction\ObjectConstructorInterface;
 use JMS\Serializer\EventDispatcher\Subscriber\DoctrineProxySubscriber;
 use JMS\Serializer\Naming\CamelCaseNamingStrategy;
 use JMS\Serializer\Naming\PropertyNamingStrategyInterface;
+use Doctrine\Common\Annotations\Reader;
 use Doctrine\Common\Annotations\AnnotationReader;
 use Doctrine\Common\Annotations\FileCacheReader;
 use Metadata\Cache\FileCache;
@@ -80,7 +81,7 @@ class SerializerBuilder
         $this->deserializationVisitors = new Map();
     }
 
-    public function setAnnotationReader(AnnotationReader $reader)
+    public function setAnnotationReader(Reader $reader)
     {
         $this->annotationReader = $reader;