svbackend / my-art-lib

Your own library of watched movies with crowd based recommendations and notifications about releases
https://mykino.top
GNU General Public License v3.0
2 stars 0 forks source link

Custom format for responses with translated entites #24

Closed svbackend closed 6 years ago

svbackend commented 6 years ago

EventListener/TranslatedEntityResponseListener.php

    // todo what if I need to return something like {items: {..translated entities..}, pagination: {page: 1: items: 500}}
    // How to translate this type of response? Think about it..
svbackend commented 6 years ago

https://jmsyst.com/libs/serializer/master/reference/annotations

I need to know how to use all features of this serializer, because now I have some problems with entity content translations + I'm not sure that annotations in entity is the right place to hold information about "How to serialize this entity", maybe move it to service? But why? I just want to do this as easy as possible with ability to change serialization options for some actions if needed

svbackend commented 6 years ago

Done in #32