Browse Source

Merge pull request #82 from SyslogicNL/master

Use the AnnotationReader interface in the SerializerBuilder, instead of the implemented AnnotationReader itself
Johannes 12 years ago
parent
commit
635242b91d
1 changed files with 2 additions and 1 deletions
  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;