FOSRestBundle icon indicating copy to clipboard operation
FOSRestBundle copied to clipboard

How to add my own DecoderInterface?

Open Spider84 opened this issue 8 years ago • 1 comments

Hello! I want to implement my DecoderInterface but I don't know how to "connect" my class to Rest. As I understand I must define my decoder in config.yml:

fos_rest:
    body_listener:
        enabled: true
        decoders:
            mango: decoder_mango

But where definition of decoder_mango class? How? Help, pls.

Spider84 avatar Oct 28 '17 05:10 Spider84

decoder_mango must be the name of your custom service that implements the DecoderInterface.

xabbuh avatar Nov 02 '17 09:11 xabbuh