Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Use the AnnotationReader interface in the SerializerBuilder, instead of the implemented AnnotationReader itself #82

Merged
merged 1 commit into from
Apr 22, 2013

Conversation

HarmenM
Copy link
Contributor

@HarmenM HarmenM commented Apr 22, 2013

When setting the annotation reader to the SerializerBuilder, the reader must be an instance of the Doctrine\Common\Annotations\AnnotationReader class. This disallows the possibility of using other annotation readers, such as the CachedReader of Doctrine or a custom implementation. A better solution would be to use the interface which describes the Annotation Reader: Doctrine\Common\Annotations\Reader.

The set annotation reader is passed into the AnnotationDriver, which uses already this interface.

@stof
Copy link
Contributor

stof commented Apr 22, 2013

👍

schmittjoh added a commit that referenced this pull request Apr 22, 2013
Use the AnnotationReader interface in the SerializerBuilder, instead of the implemented AnnotationReader itself
@schmittjoh schmittjoh merged commit 635242b into schmittjoh:master Apr 22, 2013
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants