Преглед на файлове

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;