Fix serializer interface for symfony 2.2
Merge pull request #18 from michelsalib/patch-4

Fix serializer interface for symfony 2.2